SimGrid  3.13
Versatile Simulation of Distributed Systems
process-migration.c File Reference
#include "simgrid/msg.h"
#include "xbt/synchro_core.h"

Functions

 XBT_LOG_NEW_DEFAULT_CATEGORY (msg_process_migration,"Messages specific for this msg example")
 
static int emigrant (int argc, char *argv[])
 The Emigrant will be moved from host to host. More...
 
static int policeman (int argc, char *argv[])
 The policeman check for emigrants and move them back to 'Jacquelin'. More...
 
int main (int argc, char *argv[])
 

Variables

xbt_mutex_t checkpoint = NULL
 
xbt_cond_t identification = NULL
 
static msg_process_t controlled_process = NULL
 

Function Documentation

XBT_LOG_NEW_DEFAULT_CATEGORY ( msg_process_migration  ,
"Messages specific for this msg example"   
)
static int emigrant ( int  argc,
char *  argv[] 
)
static

The Emigrant will be moved from host to host.

  • First, move to another host by myself
  • Execute some work there
  • Move back to original location
  • Go back to the other host to sleep
  • Get controlled at checkpoint
  • and get moved back by policeman
static int policeman ( int  argc,
char *  argv[] 
)
static

The policeman check for emigrants and move them back to 'Jacquelin'.

int main ( int  argc,
char *  argv[] 
)

Variable Documentation

xbt_mutex_t checkpoint = NULL
xbt_cond_t identification = NULL
msg_process_t controlled_process = NULL
static