Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move MSG and SimDag examples out of the sight of users
[simgrid.git] / examples / deprecated / java / task / priority / task-priority.tesh
diff --git a/examples/deprecated/java/task/priority/task-priority.tesh b/examples/deprecated/java/task/priority/task-priority.tesh
new file mode 100644 (file)
index 0000000..91bfca0
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/env tesh
+
+! output sort 19
+
+$ ${javacmd:=java} -classpath ${classpath:=.} task/priority/Main ${srcdir:=.}/../platforms/small_platform.xml ${srcdir:=.}/task/priority/priority.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
+> [  0.000000] (0:maestro@) Using regular java threads.
+> [  0.000000] (1:task.priority.Test@Fafard) Hello! Running a task of size 7.6296E7 with priority 1.0
+> [  0.000000] (2:task.priority.Test@Fafard) Hello! Running a task of size 7.6296E7 with priority 2.0
+> [  1.500000] (2:task.priority.Test@Fafard) Goodbye now!
+> [  2.000000] (0:maestro@) MSG_main finished; Terminating the simulation...
+> [  2.000000] (1:task.priority.Test@Fafard) Goodbye now!