April 2002
Intermediate to advanced
1024 pages
23h 26m
English
You can interrupt a thread, suspend a thread, resume a thread, and abort a thread. Figure 11.3 shows an application running whereby all these operations are interacting. The full source to this application is available in the ThreadAbort directory.

Only one button is enabled at startup: the Start button. By pressing this button, a Thread is started. When the Thread is started, it waits for the ManualResetEvent to be signaled. One of the first things that you might try is to start it again. Notice that the Start button is not disabled after a Thread has started. If the Thread
Read now
Unlock full access