Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of framagit.org:simgrid/simgrid
[simgrid.git] / examples / cpp / exec-threads / s4u-exec-threads.tesh
1 #!/usr/bin/env tesh
2
3 $ ${bindir:=.}/s4u-exec-threads ${platfdir}/energy_platform.xml "--log=root.fmt:[%10.6r]%e%m%n"
4 > [ 10.000000] Computed 2-thread activity on a 4-core host. Took 10 s
5 > [ 20.000000] Computed 4-thread activity on a 4-core host. Took 10 s
6 > [ 35.000000] Computed 6-thread activity on a 4-core host. Took 15 s
7 > [ 35.000000] Start a 1-core background task on the 4-core host.
8 > [ 45.000000] Computed 2-thread activity on a 4-core host. Took 10 s
9 > [ 57.500000] Computed 4-thread activity on a 4-core host. Took 12.5 s
10 > [ 62.500000] The background task has ended.
11 > [ 62.500000] Start a 4-core background task on the 4-core host.
12 > [ 62.500000] Sleep for 5 seconds before starting another competing task
13 > [ 80.000000] Computed 1-thread activity on a 4-core host. Took 12.5 s
14 > [ 85.000000] The background task has ended.
15 > [ 85.000000] Simulation done.