黑莓编程——定时器类

发布于 2024-10-02 03:41:14 字数 230 浏览 0 评论 0原文

Timer 类的 BlackBerry API 文档表示:

此类不提供实时保证:它使用 Object.wait(long) 方法安排任务。

这意味着什么?

The BlackBerry API documentation for the Timer class says:

This class does not offer real-time guarantees: it schedules tasks using the Object.wait(long) method.

What does this mean?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

月依秋水 2024-10-09 03:41:14

这意味着当您安排计时器任务时,该任务将不会早于请求的开始时间开始执行,但也可以稍后开始,并且稍后的时间量没有限制。

实时保证将对执行开始之前经过的最长时间进行限制。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文