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
More java approach with a specific task type for finalization instead of magic value...
[simgrid.git]
/
examples
/
java
/
basic
/
Master.java
diff --git
a/examples/java/basic/Master.java
b/examples/java/basic/Master.java
index
d3d354b
..
4fa8f44
100644
(file)
--- a/
examples/java/basic/Master.java
+++ b/
examples/java/basic/Master.java
@@
-74,9
+74,7
@@
public class Master extends simgrid.msg.Process {
Msg.info("All tasks have been dispatched. Let's tell everybody the computation is over.");
for (int i = 0; i < slaveCount; i++) {
Msg.info("All tasks have been dispatched. Let's tell everybody the computation is over.");
for (int i = 0; i < slaveCount; i++) {
- BasicTask task = new BasicTask("finalize", 0, 0);
- task.setData(221297);
- channel.put(task,slaves[i]);
+ channel.put(new FinalizeTask(),slaves[i]);
}
Msg.info("Goodbye now!");
}
Msg.info("Goodbye now!");