June 2003
Intermediate to advanced
800 pages
34h 20m
English
You want to execute a task on another thread and be able to control that thread’s priority, state, and so on.
Create a new System.Threading.Thread object that references the code you want to execute asynchronously, and use the Start method.
The Thread object allows you to write multithreaded code with a finer degree of control than that provided by asynchronous delegates. As with delegates, the Thread class can only point to a single method. However, unlike delegates, the Thread class can only execute a method that takes no parameters and has no return value. (In other words, it must match the signature of the System.Threading.ThreadStart delegate.) If you need to send data ...
Read now
Unlock full access