Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright headers.
[simgrid.git] / examples / java / async / dsend / Sender.java
index 03e3f7a..e31e5ca 100644 (file)
@@ -1,14 +1,12 @@
-/* Copyright (c) 2006-2014, 2016. The SimGrid Team.
+/* Copyright (c) 2006-2018. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 package async.dsend;
-import java.util.ArrayList;
 
 import org.simgrid.msg.Msg;
-import org.simgrid.msg.Comm;
 import org.simgrid.msg.Host;
 import org.simgrid.msg.Task;
 import org.simgrid.msg.Process;
@@ -19,6 +17,7 @@ public class Sender extends Process {
     super(host,name);
   }
 
+  @Override
   public void main(String[] args) throws MsgException {
     double taskComputeSize =0;
     double taskCommunicateSize = 5000000;
@@ -34,10 +33,10 @@ public class Sender extends Process {
     }
 
     Msg.info("All tasks have been (asynchronously) dispatched."+
-             " Let's sleep for 10s so that nobody gets a message from a terminated process.");
+             " Let's sleep for 20s so that nobody gets a message from a terminated process.");
 
     waitFor(20);
 
-    Msg.info("Goodbye now!");
+    Msg.info("Done sleeping. Goodbye now!");
   }
 }