SimGrid
3.13
Versatile Simulation of Distributed Systems
|
#include "simgrid/msg.h"
Functions | |
XBT_LOG_NEW_DEFAULT_CATEGORY (msg_async_wait,"Messages specific for this msg example") | |
static int | sender (int argc, char *argv[]) |
Sender process expects 6 arguments: More... | |
static int | receiver (int argc, char *argv[]) |
Receiver process expects 3 arguments: More... | |
int | main (int argc, char *argv[]) |
XBT_LOG_NEW_DEFAULT_CATEGORY | ( | msg_async_wait | , |
"Messages specific for this msg example" | |||
) |
|
static |
Sender process expects 6 arguments:
This process first creates a task and send it asynchronously with MSG_task_isend. Then, if:
|
static |
Receiver process expects 3 arguments:
This process first sleeps for "start time" seconds.
Then it posts asynchronous receives (MSG_task_irecv) and
If the received task is "finalize", the process ends
Otherwise, the task is processed