Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix doc typo
[simgrid.git] / examples / c / synchro-semaphore / synchro-semaphore.tesh
index 42b97b3d85c87cfa75975b391f73609fee7ae28f..9739ebcf723082ad3869e3f090ed263d80f80916 100644 (file)
@@ -2,43 +2,48 @@
 
 p Testing synchronization with semaphores
 
-! output sort 19
 $ ${bindir:=.}/c-synchro-semaphore ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n"
 > [  0.000000] (0:maestro@) Semaphore initialized with capacity = 1
-> [  0.000000] (1:Alice@Fafard) Trying to acquire 1 (not blocking)
-> [  0.000000] (1:Alice@Fafard) Acquired 1
-> [  0.900000] (2:Bob@Fafard) Trying to acquire 1 (blocking)
-> [  1.000000] (1:Alice@Fafard) Releasing 2
-> [  1.000000] (2:Bob@Fafard) Acquired 1
-> [  1.000000] (1:Alice@Fafard) Released 2
-> [  2.000000] (2:Bob@Fafard) Releasing 2
-> [  2.000000] (2:Bob@Fafard) Released 2
-> [  3.000000] (2:Bob@Fafard) Trying to acquire 3 (not blocking)
-> [  3.000000] (2:Bob@Fafard) Acquired 3
-> [  4.000000] (1:Alice@Fafard) Trying to acquire 3 (blocking)
-> [  5.000000] (2:Bob@Fafard) Releasing 4
-> [  5.000000] (1:Alice@Fafard) Acquired 3
-> [  5.000000] (2:Bob@Fafard) Released 4
-> [  7.000000] (2:Bob@Fafard) Trying to acquire 5 (blocking)
-> [ 10.000000] (1:Alice@Fafard) Releasing 4
-> [ 10.000000] (2:Bob@Fafard) Timeout.. Try again 5
-> [ 10.000000] (2:Bob@Fafard) Acquired 5
-> [ 10.000000] (1:Alice@Fafard) Released 4
-> [ 10.000000] (2:Bob@Fafard) Releasing 6
-> [ 10.000000] (2:Bob@Fafard) Released 6
-> [ 10.000000] (2:Bob@Fafard) Trying to acquire 7 (not blocking)
-> [ 10.000000] (2:Bob@Fafard) Acquired 7
-> [ 11.000000] (1:Alice@Fafard) Trying to acquire 5 (blocking)
-> [ 14.000000] (1:Alice@Fafard) Timeout.. Try again 5
-> [ 15.000000] (2:Bob@Fafard) Releasing 8
-> [ 15.000000] (1:Alice@Fafard) Acquired 5
-> [ 15.000000] (2:Bob@Fafard) Released 8
-> [ 17.000000] (1:Alice@Fafard) Releasing 6
-> [ 17.000000] (1:Alice@Fafard) Released 6
-> [ 22.000000] (1:Alice@Fafard) Trying to acquire 7 (not blocking)
-> [ 22.000000] (1:Alice@Fafard) Acquired 7
-> [ 22.000000] (1:Alice@Fafard) Releasing 8
-> [ 22.000000] (1:Alice@Fafard) Released 8
+> [  0.000000] (1:Alice@Fafard) Acquire #1 (that is free)
+> [  0.000000] (1:Alice@Fafard) Acquired #1
+> [  0.900000] (2:Bob@Fafard) Acquire #1 (that is not free)
+> [  1.000000] (1:Alice@Fafard) Releasing #2
+> [  1.000000] (2:Bob@Fafard) Acquired #1
+> [  1.000000] (1:Alice@Fafard) Released #2
+> [  2.000000] (2:Bob@Fafard) Releasing #2
+> [  2.000000] (2:Bob@Fafard) Released #2
+> [  3.000000] (2:Bob@Fafard) Trying for 1 sec to acquire #3 (that is free)
+> [  3.000000] (2:Bob@Fafard) Acquired #3
+> [  4.000000] (1:Alice@Fafard) Trying for 1 sec to acquire #3 (that is not free)
+> [  5.000000] (2:Bob@Fafard) Releasing #4
+> [  5.000000] (1:Alice@Fafard) Timeout.. Try #3 for another second.
+> [  5.000000] (2:Bob@Fafard) Released #4
+> [  5.000000] (1:Alice@Fafard) Acquired #3
+> [  7.000000] (2:Bob@Fafard) Trying for 1 sec to acquire #5 (that is not free)
+> [  8.000000] (2:Bob@Fafard) Timeout.. Try #5 for another second.
+> [  9.000000] (2:Bob@Fafard) Timeout.. Try #5 for another second.
+> [ 10.000000] (1:Alice@Fafard) Releasing #4
+> [ 10.000000] (2:Bob@Fafard) Timeout.. Try #5 for another second.
+> [ 10.000000] (1:Alice@Fafard) Released #4
+> [ 10.000000] (2:Bob@Fafard) Acquired #5
+> [ 10.000000] (2:Bob@Fafard) Releasing #6
+> [ 10.000000] (2:Bob@Fafard) Released #6
+> [ 10.000000] (2:Bob@Fafard) Trying for 1 sec to acquire #7 (that is free)
+> [ 10.000000] (2:Bob@Fafard) Acquired #7
+> [ 11.000000] (1:Alice@Fafard) Trying for 1 sec to acquire #5 (that is not free)
+> [ 12.000000] (1:Alice@Fafard) Timeout.. Try #5 for another second.
+> [ 13.000000] (1:Alice@Fafard) Timeout.. Try #5 for another second.
+> [ 14.000000] (1:Alice@Fafard) Timeout.. Try #5 for another second.
+> [ 15.000000] (2:Bob@Fafard) Releasing #8
+> [ 15.000000] (1:Alice@Fafard) Timeout.. Try #5 for another second.
+> [ 15.000000] (2:Bob@Fafard) Released #8
+> [ 15.000000] (1:Alice@Fafard) Acquired #5
+> [ 17.000000] (1:Alice@Fafard) Releasing #6
+> [ 17.000000] (1:Alice@Fafard) Released #6
+> [ 22.000000] (1:Alice@Fafard) Trying for 1 sec to acquire #7 (that is free)
+> [ 22.000000] (1:Alice@Fafard) Acquired #7
+> [ 22.000000] (1:Alice@Fafard) Releasing #8
+> [ 22.000000] (1:Alice@Fafard) Released #8
 > [ 65.000000] (2:Bob@Fafard) Done
 > [ 72.000000] (1:Alice@Fafard) Done
 > [ 72.000000] (0:maestro@) Finished