X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2d035d48dbc4631b06a85a91b24b2115cd5bbe9b..6297441a796323e62ff1a6f1404207db2e55cfb4:/examples/master_slave_kill/Master.java diff --git a/examples/master_slave_kill/Master.java b/examples/master_slave_kill/Master.java index 0600913cb7..783e9a1351 100644 --- a/examples/master_slave_kill/Master.java +++ b/examples/master_slave_kill/Master.java @@ -1,7 +1,7 @@ /* * Master of a basic master/slave example in Java * - * Copyright 2006,2007,2010 The SimGrid Team. All rights reserved. + * Copyright 2006-2012 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. @@ -27,6 +27,7 @@ public class Master extends Process { try { Msg.info("Create process on host 'alice'"); process2 = new Slave("alice","slave"); + process2.start(); } catch (MsgException e){ System.out.println("Process2!"); } @@ -40,7 +41,6 @@ public class Master extends Process { break; } } - process2.kill(); Msg.info("Process2 is now killed, should exit now");