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

Functions

 XBT_LOG_NEW_DEFAULT_CATEGORY (mag_app_pingpong,"Messages specific for this msg example")
 
static int pinger (int argc, char *argv[])
 
static int ponger (int argc, char *argv[])
 
int main (int argc, char *argv[])
 

Function Documentation

XBT_LOG_NEW_DEFAULT_CATEGORY ( mag_app_pingpong  ,
"Messages specific for this msg example"   
)
static int pinger ( int  argc,
char *  argv[] 
)
static
  • Do the ping with a 1-Byte task (latency bound) ...
  • ... then wait for the (large) pong
static int ponger ( int  argc,
char *  argv[] 
)
static
  • Receive the (small) ping first ....
  • ... Then send a 1GB pong back (bandwidth bound)
int main ( int  argc,
char *  argv[] 
)
  • Load the platform description
  • Register the function to be executed by the processes
  • Deploy the application
  • Run the simulation