Instead, the timer remained in a suspended state while the UI thread was sleeping.
然而,当UI线程在睡眠时定时器却保持挂起状态。
Because the UI thread was sleeping, however, the sample application displays the five timer events (4 through 8) all at once when the UI thread wakes up again and is able to process the handlers.
因为UI线程在睡眠,所以当UI线程一旦被唤醒例子程序就会列出5个定时器事件(4到8)并能够处理处理函数。
This is because during the five seconds that the first timer event was sleeping, the timer kept on generating Elapsed events on different worker threads.
这是因为在这5秒期间第一个定时器事件正在睡眠,而定时器却在不同的工作者线程上继续产生时间消失事件。
应用推荐