But, because the thread at priority 4 executes first, it should have a slightly larger share of the five-second execution interval and print out a higher loop count.
但是由于首先执行优先级为4的线程,因此在五秒钟的执行时间间隔中,它分得的时间稍多一些并且打印的循环计数也稍大一些。
The user is able to control both the polling interval and the duration of the execution.
用户可以控制轮询时间间隔和执行持续时间。
Note that while mouse click handler is executing the first interval callback executes. As with the timer its handler is queued for later execution.
注意当鼠标点击事件正在执行的时候第一次的interval事件也触发了,与timer一样,它的事件也进入队列等待之后执行。
应用推荐