--- /dev/null
+This is a somehow basic master/slaves example.
+
+There is 3 kind of processes:
+ * Master: creates some tasks, and dispatches them to its slaves
+ * Forwarder: get tasks from master, and dispatch them further
+ * Slave: get tasks from either master or forwarder, and run them
+
+At the end of the execution:
+ - the master sends FinalizeTask to every known slave to stop them
+ - On reception of FT, forwarders send FT to every slave, and stop.
+ - On reception of FinalizeTask, slaves stop.
\ No newline at end of file
+++ /dev/null
-/*
- * $Id$
- *
- * Copyright 2006,2007 Martin Quinson, Malek Cherier All right 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.
- *
- * This contains the implementation of the functions in relation with the java
- * channel instance.
- */
-
-#include "jmsg_channel.h"
-#include "jmsg.h"
-#include "jxbt_utilities.h"
-
-jint jchannel_get_id(jobject jchannel, JNIEnv * env)
-{
- jmethodID id = jxbt_get_smethod(env, "simgrid/msg/Channel", "getId", "()I");
-
- if (!id)
- return -1;
-
- return (*env)->CallIntMethod(env, jchannel, id);
-}
+++ /dev/null
-/*
- * $Id$
- *
- * Copyright 2006,2007 Martin Quinson, Malek Cherier All right 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.
- *
- * This contains the declarations of the functions in relation with the java
- * channel instance.
- */
-
-#ifndef MSG_JCHANNEL_H
-#define MSG_JCHANNEL_H
-
-#include <jni.h>
-
-/**
- * This function returns the id of a java channel instance.
- *
- * @param jchannel The channel to get the id.
- * @param env The environment of the current thread.
- *
- * @return The id of the channel.
- */
-jint jchannel_get_id(jobject jchannel, JNIEnv * env);
-
-#endif /* !MSG_JCHANNEL_H */