Tuyen Nguyen
Tuyen Nguyen

Reputation: 4479

Blackberry programming - Timer class

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?

Upvotes: 1

Views: 808

Answers (1)

Michael Donohue
Michael Donohue

Reputation: 11876

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.

Upvotes: 1

Related Questions