When an event occurs, the waiting thread is re-started and a special no-op (event no-op) is issued. This sets the PC to the vector supplied by the selected resource and fetches the instruction(s) using the new PC.
In fast mode the thread will be continually executing the wait until a resource is found to be ready. This will then be immediately followed by an event no-op.
Interrupts are similar.
Resuming properly from interrupts.
-
- Member++
- Posts: 31
- Joined: Thu Dec 10, 2009 10:11 pm