Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
moved a line for comprehension
[simgrid.git] / examples / python / async-waitany / async-waitany.tesh
1 #!/usr/bin/env tesh
2
3 p Testing Comm.wait_any()
4
5 ! output sort 19
6 $ ${pythoncmd:=python3} ${PYTHON_TOOL_OPTIONS:=} ${bindir:=.}/async-waitany.py ${platfdir}/small_platform.xml async-waitany_d.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
7 > [  0.000000] (1:sender@Tremblay) Send 'Message 0' to 'Mailbox(receiver-0)'
8 > [  0.000000] (2:receiver@Fafard) Wait for my first message
9 > [  0.000000] (3:receiver@Jupiter) Wait for my first message
10 > [  0.000000] (1:sender@Tremblay) Send 'Message 1' to 'Mailbox(receiver-1)'
11 > [  0.000000] (1:sender@Tremblay) Send 'Message 2' to 'Mailbox(receiver-0)'
12 > [  0.000000] (1:sender@Tremblay) Send 'Message 3' to 'Mailbox(receiver-1)'
13 > [  0.000000] (1:sender@Tremblay) Send 'Message 4' to 'Mailbox(receiver-0)'
14 > [  0.000000] (1:sender@Tremblay) Send 'Message 5' to 'Mailbox(receiver-1)'
15 > [  0.000000] (1:sender@Tremblay) Send 'finalize' to 'Mailbox(receiver-0)'
16 > [  0.000000] (1:sender@Tremblay) Send 'finalize' to 'Mailbox(receiver-1)'
17 > [  0.000000] (1:sender@Tremblay) Done dispatching all messages
18 > [  0.158397] (2:receiver@Fafard) I got a 'Message 0'.
19 > [  0.169155] (3:receiver@Jupiter) I got a 'Message 1'.
20 > [  0.316794] (2:receiver@Fafard) I got a 'Message 2'.
21 > [  0.338309] (3:receiver@Jupiter) I got a 'Message 3'.
22 > [  0.475190] (2:receiver@Fafard) I got a 'Message 4'.
23 > [  0.500898] (2:receiver@Fafard) I got a 'finalize'.
24 > [  0.500898] (1:sender@Tremblay) Remove the 1th pending comm: it terminated earlier than another comm that was initiated first.
25 > [  0.507464] (3:receiver@Jupiter) I got a 'Message 5'.
26 > [  0.526478] (3:receiver@Jupiter) I got a 'finalize'.
27 > [  0.526478] (1:sender@Tremblay) Goodbye now!