static void lazy_guy()
{
XBT_INFO(
"Nobody's watching me ? Let's go to sleep.");
XBT_INFO(
"Uuuh ? Did somebody call me ?");
XBT_INFO(
"Going to sleep one more time (for 10 sec)...");
XBT_INFO(
"Ok, let's do some work, then (for 10 sec on Boivin).");
XBT_INFO(
"Mmmh, I'm done now. Goodbye.");
}
static void dream_master()
{
XBT_INFO(
"Let's wake the lazy guy up! >:) BOOOOOUUUHHH!!!!");
lazy->resume();
XBT_INFO(
"Suspend the lazy guy while he's sleeping...");
lazy->suspend();
lazy->resume();
XBT_INFO(
"Suspend again the lazy guy while he's sleeping...");
lazy->suspend();
XBT_INFO(
"This time, don't let him finish his siesta.");
lazy->resume();
XBT_INFO(
"Give a 2 seconds break to the lazy guy while he's working...");
lazy->suspend();
lazy->resume();
}
{
xbt_assert(argc == 2,
"Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]);
std::vector<simgrid::s4u::Host*>
list;
return 0;
}