X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/78224183a24a35d071d26d0653d7d3c196b131e6..eb86ef55ebafd813f093d34b293254fc1587a7b2:/examples/async/Master.java diff --git a/examples/async/Master.java b/examples/async/Master.java index 88d6d1249e..e7a89f25b1 100644 --- a/examples/async/Master.java +++ b/examples/async/Master.java @@ -33,6 +33,7 @@ public class Master extends Process { //Msg.info("Sending \"" + task.getName()+ "\" to \"slave_" + i % slavesCount + "\""); task.send("slave_"+(i%slavesCount)); } + simulatedSleep(1); Msg.info("All tasks have been dispatched. Let's tell (asynchronously) everybody the computation is over, and sleep 20s so that nobody gets a message from a terminated process.");