摘要: Interrupts中断An interrupt is an indication to a thread that it should stop what it is doing and do something else. It's up to the programmer to decide exactly how a thread responds to an interrupt, but it is very common for the thread to terminate. This is the usage emphasized in this lesson.中断表明 阅读全文
posted @ 2012-05-20 22:24 yuwenxing 阅读(403) 评论(0) 推荐(0) 编辑
摘要: Pausing Execution with Sleep用睡眠(Sleep)暂停执行(Execution)Thread.sleep causes the current thread to suspend execution for a specified period. This is an efficient means of making processor time available to the other threads of an application or other applications that might be running on a computer syst 阅读全文
posted @ 2012-05-20 21:22 yuwenxing 阅读(161) 评论(0) 推荐(0) 编辑