+
+ SLEEP(5.0);
+ XBT_INFO("Suspend the lazy guy while he's sleeping...");
+ MSG_process_suspend(lazy);
+ XBT_INFO("Let him finish his siesta.");
+ SLEEP(10.0);
+ XBT_INFO("Wake up, lazy guy!");
+ MSG_process_resume(lazy);
+
+ SLEEP(5.0);
+ XBT_INFO("Suspend again the lazy guy while he's sleeping...");
+ MSG_process_suspend(lazy);
+ XBT_INFO("This time, don't let him finish his siesta.");
+ SLEEP(2.0);
+ XBT_INFO("Wake up, lazy guy!");
+ MSG_process_resume(lazy);
+