Classes that are both active and reactive run on their
own threads. In animated applications with multiple threads, the thread
view enables you to control the execution of threads. The animator
always maintains one thread in focus.
About this task
All thread-related operations
are performed with respect to the focus thread:
- The call stack view displays the call stack of
the focus thread (see Viewing the call stack).
- The event queue view displays the event queue of
the focus thread (see Viewing the event queue).
- The Go buttons on the Animation toolbar
affect the execution only of the focus thread.
A Go Step advances the focus thread
one step. While the focus thread is executing, all other threads execute
as much as they can until the moment the focus thread finishes executing
this step. It is impossible to predict how far non-focus threads advance
because their behavior depends on how the operating system scheduler
behaves during run time.