A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't tell 165 times that we need CMAKE v2.6
[simgrid.git]
/
examples
/
java
/
master_slave_bypass
/
Master.java
diff --git
a/examples/java/master_slave_bypass/Master.java
b/examples/java/master_slave_bypass/Master.java
index
39fb1c4
..
eadc1e9
100644
(file)
--- a/
examples/java/master_slave_bypass/Master.java
+++ b/
examples/java/master_slave_bypass/Master.java
@@
-21,23
+21,23
@@
public class Master extends Process {
}
public void main(String[] args) throws MsgException {
Msg.info("Master Hello!");
}
public void main(String[] args) throws MsgException {
Msg.info("Master Hello!");
-
+
//Create a slave on host "alice"
try {
//Create a slave on host "alice"
try {
- Msg.info("Create process on host '
alice
'");
- new Slave("
alice
","process2").start();
+ Msg.info("Create process on host '
Jacquelin
'");
+ new Slave("
Jacquelin
","process2").start();
}
catch (MsgException e){
System.out.println("Process2!");
}
}
catch (MsgException e){
System.out.println("Process2!");
}
-
+
//Wait for slave "alice"
while(true)
//Wait for slave "alice"
while(true)
- {
- Task task = Task.receive("
alice
");
+ {
+ Task task = Task.receive("
Jacquelin
");
if (task instanceof FinalizeTask) {
Msg.info("Received Finalize. I'm done. See you!");
if (task instanceof FinalizeTask) {
Msg.info("Received Finalize. I'm done. See you!");
- break;
+ break;
}
}
}
}
}
}