Using alarm

来源:互联网 发布:高分一号数据免费下载 编辑:程序博客网 时间:2024/04/30 08:19
// alarm belongs to a thread, think about the 'sleep', you set a timer,
// and you wait for the timer, you are the thread. But the timer handler
// shared in the process. Last, do not mix the sleep & alarm.