File: process-kill.tesh

package info (click to toggle)
simgrid 3.21%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 21,972 kB
  • sloc: cpp: 88,193; ansic: 69,244; fortran: 6,089; f90: 5,162; xml: 4,861; java: 4,250; perl: 2,056; python: 1,193; sh: 1,159; makefile: 57; sed: 6
file content (12 lines) | stat: -rw-r--r-- 672 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env tesh

$ java -classpath ${classpath:=.} process/kill/Main ${srcdir:=.}/../platforms/small_platform.xml --lof=no_loc
> [0.000000] [java/INFO] Using regular java threads.
> [Jacquelin:killer:(1) 0.000000] [java/INFO] Hello!
> [Boivin:victim:(2) 0.000000] [java/INFO] Hello!
> [Boivin:victim:(2) 0.000000] [java/INFO] Suspending myself
> [Jacquelin:killer:(1) 10.000000] [java/INFO] Resume Process
> [Boivin:victim:(2) 10.000000] [java/INFO] OK, OK. Let's work
> [Jacquelin:killer:(1) 11.000000] [java/INFO] Kill Process
> [Jacquelin:killer:(1) 11.000000] [java/INFO] Ok, goodbye now.
> [11.000000] [java/INFO] MSG_main finished; Terminating the simulation...