Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
logs: Allow %a instead of %P to display the actor name
[simgrid.git] / examples / c / actor-suspend / actor-suspend.tesh
1 #!/usr/bin/env tesh
2
3 ! output sort 19
4 $ ${bindir:=.}/c-actor-suspend ${platfdir:=.}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%a@%h)%e%m%n"
5 > [  0.000000] (dream_master@Boivin) Let's create a lazy guy.
6 > [  0.000000] (Lazy@Boivin) Nobody's watching me ? Let's go to sleep.
7 > [  0.000000] (dream_master@Boivin) Let's wait a little bit...
8 > [ 10.000000] (dream_master@Boivin) Let's wake the lazy guy up! >:) BOOOOOUUUHHH!!!!
9 > [ 10.000000] (Lazy@Boivin) Uuuh ? Did somebody call me ?
10 > [ 10.000000] (Lazy@Boivin) Going to sleep...
11 > [ 15.000000] (dream_master@Boivin) Suspend the lazy guy while he's sleeping...
12 > [ 15.000000] (dream_master@Boivin) Let him finish his siesta.
13 > [ 25.000000] (dream_master@Boivin) Wake up, lazy guy!
14 > [ 25.000000] (Lazy@Boivin) Mmm... waking up.
15 > [ 25.000000] (Lazy@Boivin) Going to sleep one more time (for 10 sec)...
16 > [ 30.000000] (dream_master@Boivin) Suspend again the lazy guy while he's sleeping...
17 > [ 30.000000] (dream_master@Boivin) This time, don't let him finish his siesta.
18 > [ 32.000000] (dream_master@Boivin) Wake up, lazy guy!
19 > [ 35.000000] (Lazy@Boivin) Waking up once for all!
20 > [ 35.000000] (Lazy@Boivin) Ok, let's do some work, then (for 10 sec on Boivin).
21 > [ 37.000000] (dream_master@Boivin) Give a 2 seconds break to the lazy guy while he's working...
22 > [ 39.000000] (dream_master@Boivin) Back to work, lazy guy!
23 > [ 39.000000] (dream_master@Boivin) OK, I'm done here.
24 > [ 47.000000] (Lazy@Boivin) Mmmh, I'm done now. Goodbye.