TD_SR.git
6 years agoTD2: code cleanup in the client part.
Jérôme Benoit [Mon, 12 Mar 2018 14:40:19 +0000 (15:40 +0100)] 
TD2: code cleanup in the client part.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoTD2: Make the socket client multithreaded.
Jérôme Benoit [Mon, 12 Mar 2018 14:01:42 +0000 (15:01 +0100)] 
TD2: Make the socket client multithreaded.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoUse stderr where appropriate.
Jérôme Benoit [Sun, 11 Mar 2018 20:19:46 +0000 (21:19 +0100)] 
Use stderr where appropriate.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoBetter exception handling.
Jérôme Benoit [Sat, 10 Mar 2018 12:41:46 +0000 (13:41 +0100)] 
Better exception handling.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoTD2: Avoid to duplicate newline.
Jérôme Benoit [Fri, 9 Mar 2018 23:32:32 +0000 (00:32 +0100)] 
TD2: Avoid to duplicate newline.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoCode cleanups.
Jérôme Benoit [Fri, 9 Mar 2018 22:18:21 +0000 (23:18 +0100)] 
Code cleanups.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoCode cleanups.
Jérôme Benoit [Fri, 9 Mar 2018 22:06:16 +0000 (23:06 +0100)] 
Code cleanups.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoSwitch CRLF to LF line endings.
Jérôme Benoit [Fri, 9 Mar 2018 20:56:06 +0000 (21:56 +0100)] 
Switch CRLF to LF line endings.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoTD1: Refine the deadlock explanation.
Jérôme Benoit [Fri, 9 Mar 2018 20:05:50 +0000 (21:05 +0100)] 
TD1: Refine the deadlock explanation.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoTD2: Add preliminary code for question 1.
Jérôme Benoit [Fri, 9 Mar 2018 20:03:08 +0000 (21:03 +0100)] 
TD2: Add preliminary code for question 1.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoTD1: Fix the deadlock explanation.
Jérôme Benoit [Fri, 9 Mar 2018 09:19:31 +0000 (10:19 +0100)] 
TD1: Fix the deadlock explanation.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoTD1: Explain and fix the deadlock in exo3.
Jérôme Benoit [Fri, 9 Mar 2018 09:16:17 +0000 (10:16 +0100)] 
TD1: Explain and fix the deadlock in exo3.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoTD1: Make some constructors.
Jérôme Benoit [Fri, 9 Mar 2018 08:36:45 +0000 (09:36 +0100)] 
TD1: Make some constructors.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoTD1: Set values to trigger a deadlock.
Jérôme Benoit [Wed, 7 Mar 2018 20:15:48 +0000 (21:15 +0100)] 
TD1: Set values to trigger a deadlock.

And add more informative messages.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoTD2: Add several producers and consumers to exo3.
Jérôme Benoit [Wed, 7 Mar 2018 19:56:11 +0000 (20:56 +0100)] 
TD2: Add several producers and consumers to exo3.

Also avoid to print twice the same information.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoTD1: Add proper locking to the producer/consumer exo3 code.
Jérôme Benoit [Wed, 7 Mar 2018 19:34:07 +0000 (20:34 +0100)] 
TD1: Add proper locking to the producer/consumer exo3 code.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoTD1: Use thread optimized random number generator.
Jérôme Benoit [Wed, 7 Mar 2018 19:11:02 +0000 (20:11 +0100)] 
TD1: Use thread optimized random number generator.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoTD1: fix the exo1 response.
Jérôme Benoit [Wed, 7 Mar 2018 18:59:27 +0000 (19:59 +0100)] 
TD1: fix the exo1 response.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoTD1: Initial commit of exercice 3 code.
Jérôme Benoit [Wed, 7 Mar 2018 18:55:01 +0000 (19:55 +0100)] 
TD1: Initial commit of exercice 3 code.

Proper locking will be done later on.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoTD1: Use a thread optimized random number generator.
Jérôme Benoit [Tue, 6 Mar 2018 22:38:54 +0000 (23:38 +0100)] 
TD1: Use a thread optimized random number generator.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoTD1: remove an extra semicolon.
Jérôme Benoit [Tue, 6 Mar 2018 21:23:10 +0000 (22:23 +0100)] 
TD1: remove an extra semicolon.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoTD1: Cleanup the exo1 code.
Jérôme Benoit [Tue, 6 Mar 2018 17:20:11 +0000 (18:20 +0100)] 
TD1: Cleanup the exo1 code.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoAdd exo1 code.
Jérôme Benoit [Tue, 6 Mar 2018 14:17:30 +0000 (15:17 +0100)] 
Add exo1 code.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
6 years agoInitial commit for TD1 exo1.
Jérôme Benoit [Tue, 6 Mar 2018 13:10:47 +0000 (14:10 +0100)] 
Initial commit for TD1 exo1.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>