Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
s/ *$// over all RST files (no content modification)
[simgrid.git] / examples / python / comm-waitfor / comm-waitfor.tesh
1 #!/usr/bin/env tesh
2
3 p Testing Comm.wait_any()
4
5 $ ${pythoncmd:=python3} ${PYTHON_TOOL_OPTIONS:=} ${bindir:=.}/comm-waitfor.py ${platfdir}/small_platform_fatpipe.xml "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n"
6 > [  0.000000] (1:sender@Tremblay) Send 'Message 0' to 'receiver-0'
7 > [  0.000000] (2:receiver@Ruby) Wait for my first message
8 > [  0.000000] (1:sender@Tremblay) Send 'Message 1' to 'receiver-0'
9 > [  0.000000] (1:sender@Tremblay) Send 'Message 2' to 'receiver-0'
10 > [  0.000000] (1:sender@Tremblay) Send 'finalize' to 'receiver-0
11 > [  0.000000] (1:sender@Tremblay) Done dispatching all messages
12 > [  0.000000] (1:sender@Tremblay) Waiting for all outstanding communications to complete
13 > [  0.105458] (2:receiver@Ruby) I got a 'Message 0'.
14 > [  0.210917] (2:receiver@Ruby) I got a 'Message 1'.
15 > [  0.316375] (2:receiver@Ruby) I got a 'Message 2'.
16 > [  0.318326] (2:receiver@Ruby) I got a 'finalize'.
17 > [  0.318326] (2:receiver@Ruby) Goodbye now!
18 > [  0.318326] (1:sender@Tremblay) Goodbye now!