Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
smpi: fix issue with message IDs. In case of persistent request reused multiple times...
[simgrid.git] / examples / python / synchro-semaphore / synchro-semaphore.tesh
1 #!/usr/bin/env tesh
2
3 p Testing Semaphore
4
5 $ ${pythoncmd:=python3} ${PYTHON_TOOL_OPTIONS:=} ${bindir:=.}/synchro-semaphore.py --platform ${platfdir}/two_hosts.xml --words hello "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n"
6 >[  0.000000] (1:producer@Tremblay) starting consuming
7 >[  0.000000] (2:consumer@Jupiter) starting producing
8 >[  1.000000] (1:producer@Tremblay) Pushing 'hello'
9 >[  1.000000] (2:consumer@Jupiter) Receiving 'hello'
10 >[  2.000000] (1:producer@Tremblay) Pushing ''
11 >[  2.000000] (1:producer@Tremblay) Bye!
12 >[  2.000000] (2:consumer@Jupiter) Receiving ''
13 >[  2.000000] (2:consumer@Jupiter) Bye!
14
15 $ ${pythoncmd:=python3} ${PYTHON_TOOL_OPTIONS:=} ${bindir:=.}/synchro-semaphore.py --platform ${platfdir}/two_hosts.xml --words one,two,three "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n"
16 >[  0.000000] (1:producer@Tremblay) starting consuming
17 >[  0.000000] (2:consumer@Jupiter) starting producing
18 >[  1.000000] (1:producer@Tremblay) Pushing 'one'
19 >[  1.000000] (2:consumer@Jupiter) Receiving 'one'
20 >[  2.000000] (1:producer@Tremblay) Pushing 'two'
21 >[  2.000000] (2:consumer@Jupiter) Receiving 'two'
22 >[  3.000000] (1:producer@Tremblay) Pushing 'three'
23 >[  3.000000] (2:consumer@Jupiter) Receiving 'three'
24 >[  4.000000] (1:producer@Tremblay) Pushing ''
25 >[  4.000000] (1:producer@Tremblay) Bye!
26 >[  4.000000] (2:consumer@Jupiter) Receiving ''
27 >[  4.000000] (2:consumer@Jupiter) Bye!