/* 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 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. */
* of where the process has been during its execution. Migrations are represented by
* arrows from the origin to the destination host.
* You might want to run this program with the following parameters:
* of where the process has been during its execution. Migrations are represented by
* arrows from the origin to the destination host.
* You might want to run this program with the following parameters:
/** The guy we will move from host to host. It move alone and then is moved by policeman back */
static int emigrant(int argc, char *argv[])
{
/** The guy we will move from host to host. It move alone and then is moved by policeman back */
static int emigrant(int argc, char *argv[])
{
destination = (char*)MSG_task_get_data (task);
MSG_task_destroy (task);
if (!destination) break; //there is no destination, die
destination = (char*)MSG_task_get_data (task);
MSG_task_destroy (task);
if (!destination) break; //there is no destination, die
// I am the master of emigrant process,
// I tell it where it must emigrate to.
// I am the master of emigrant process,
// I tell it where it must emigrate to.