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

Functions

 XBT_LOG_NEW_DEFAULT_CATEGORY (msg_process_kill,"Messages specific for this msg example")
 
static int victim (int argc, char *argv[])
 
static int killer (int argc, char *argv[])
 
int main (int argc, char *argv[])
 

Function Documentation

XBT_LOG_NEW_DEFAULT_CATEGORY ( msg_process_kill  ,
"Messages specific for this msg example"   
)
static int victim ( int  argc,
char *  argv[] 
)
static
  • First suspend itself
  • Then is resumed and start to execute a task
  • But will never reach the end of it
static int killer ( int  argc,
char *  argv[] 
)
static
  • First start a victim process
  • Resume it from its suspended state
  • and then kill it
int main ( int  argc,
char *  argv[] 
)
  • Load the platform description
  • Create and deploy killer process
  • Run the simulation