- INFO0("Let's wait a little bit...");
- MSG_process_sleep(10.0);
- INFO0("Let's wake the lazy guy up! >:) BOOOOOUUUHHH!!!!");
+ XBT_INFO("Let's wait a little bit...");
+ SLEEP(10.0);
+ XBT_INFO("Let's wake the lazy guy up! >:) BOOOOOUUUHHH!!!!");
+ MSG_process_resume(lazy);
+
+ 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!");