Implemented by the
COM interface IDeEngine.
A scheduler
maintains a priority queue, called the timing
wheel. The time wheel contains a set of timed Events sorted by their time stamps. Each event contains a set of Threads and Closures(atomic functions) suspended for execution for a delay equal to the time stamp of the event.
The interface
functions such as waitfor,wait, notify
–add threads and closures to existing events, or newly
generated timed events
–Insert events to the timing wheel
The time wheel is
empty when the simulation is over.