开发者

Blackberry programming - Timer class

开发者 https://www.devze.com 2023-01-24 02:45 出处:网络
The BlackBerry API documentation for the Timer class says: This class does not offer real-time guarantees: it schedules tasks using the Object.wait(lo开发者_开发百科ng) method.

The BlackBerry API documentation for the Timer class says:

This class does not offer real-time guarantees: it schedules tasks using the Object.wait(lo开发者_开发百科ng) method.

What does this mean?


It means when you schedule a timer task, the task will start executing no sooner than the requested start time, but could start later, and the amount of time later has no bound.

A real-time guarantee would give a bound on the maximum amount of time that elapses before execution starts.

0

精彩评论

暂无评论...
验证码 换一张
取 消