summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a6e7167)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9367
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
m_task_t task = NULL;
char *destination = NULL;
m_task_t task = NULL;
char *destination = NULL;
- INFO0("Setting process category");
- TRACE_msg_set_process_category(MSG_process_self(), "emigrant", "1 0 0");
MSG_process_sleep(2);
while (1){ // I am an eternal emigrant
MSG_process_sleep(2);
while (1){ // I am an eternal emigrant
- TRACE_msg_set_process_category(MSG_process_self(), "master", "1 0 0");
-
// I am the master of emigrant process,
// I tell it where it must emigrate to.
xbt_dynar_t destinations = xbt_dynar_new (sizeof(char*), xbt_free);
// I am the master of emigrant process,
// I tell it where it must emigrate to.
xbt_dynar_t destinations = xbt_dynar_new (sizeof(char*), xbt_free);
/** Emitter function */
int master(int argc, char *argv[])
{
/** Emitter function */
int master(int argc, char *argv[])
{
- //defining the category of the master process
- TRACE_msg_set_process_category(MSG_process_self(), "master", "1 0 0");
-
long number_of_tasks = atol(argv[1]);
long slaves_count = atol(argv[4]);
int p = 1000000000;
long number_of_tasks = atol(argv[1]);
long slaves_count = atol(argv[4]);
int p = 1000000000;
/** Receiver function */
int slave(int argc, char *argv[])
{
/** Receiver function */
int slave(int argc, char *argv[])
{
- //defining the category of this slave process
- TRACE_msg_set_process_category(MSG_process_self(), "slave", "0 0 1");
-
m_task_t task = NULL;
int res;
m_task_t task = NULL;
int res;