4 * Copyright 2006,2007 Martin Quinson, Malek Cherier
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the license (GNU LGPL) which comes with this package.
13 public class Slave extends simgrid.msg.Process {
14 public void main(String[] args) throws JniException, NativeException {
15 if (args.length < 1) {
16 Msg.info("Slave needs 1 argument (its number)");
20 int num = Integer.valueOf(args[0]).intValue();
21 Msg.info("Receiving on 'slave_"+num+"'");
24 Task t = Task.receive("slave_"+num);
26 if (t instanceof FinalizeTask) {
29 MyTask task = (MyTask)t;
31 // Msg.info("\"" + task.getName() + "\" done ");
34 Msg.info("Received Finalize. I'm done. See you!");