Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
4df63cbe99d914444b5f304c0e33a99906f15e31
[simgrid.git] / examples / python / exec-async / exec-async.tesh
1 #!/usr/bin/env tesh
2
3 $ ${pythoncmd:=python3} ${PYTHON_TOOL_OPTIONS:=} ${srcdir:=.}/exec-async.py ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
4 > [  0.000000] (1:wait@Fafard) Waiter executes 76296000 flops, should take 1 second.
5 > [  0.000000] (2:monitor@Ginette) Monitor executes 48492000 flops, should take 1 second.
6 > [  0.000000] (3:cancel@Boivin) Canceller executes 98095000 flops, should take 1 second.
7 > [  0.000000] (2:monitor@Ginette) Remaining amount of flops: 48492000 (100%)
8 > [  0.300000] (2:monitor@Ginette) Remaining amount of flops: 33944400 (70%)
9 > [  0.500000] (3:cancel@Boivin) I changed my mind, cancel!
10 > [  0.500000] (3:cancel@Boivin) Goodbye from canceller!
11 > [  0.600000] (2:monitor@Ginette) Remaining amount of flops: 19396800 (40%)
12 > [  0.900000] (2:monitor@Ginette) Remaining amount of flops: 4849200 (10%)
13 > [  1.000000] (1:wait@Fafard) Goodbye from waiter!
14 > [  1.200000] (2:monitor@Ginette) Goodbye from monitor!