Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change the way the threads are launched: they are now launched as
[simgrid.git] / examples / master_slave_bypass / Master.java
index 1b06544..db764df 100644 (file)
@@ -26,7 +26,7 @@ public class Master extends Process {
        //Create a slave on host "alice"
        try {
                        Msg.info("Create process on host 'alice'");
-               new Slave("alice","process2");
+               new Slave("alice","process2").start();
            }
        catch (MsgException e){
                        System.out.println("Process2!");