Suspending and Resuming a Thread
See Also
Suspending a thread removes its behavior
from the program. This enables you to watch only the behavior of threads
you want.
To suspend execution of a running thread:
- In the Threads window, right-click the running thread and choose Suspend.
To resume execution of a suspended thread:
Notes
- In the Threads window, the icon to the left of the thread name indicates
whether the thread is suspended or waiting to be resumed.
indicates the current thread.
indicates a thread that is running and is not current, and
indicates
a thread that is suspended and is not current.
- To display the Suspend property as a boolean flag (True or False) in the
Threads window, click the columns button (
)
and select the Suspend checkbox.
- The state of the Thread is independent of whether the thread is suspended
or waiting to be resumed. A thread's state may be Running while the Suspend
property is True.
Legal Notices