May 2010
Intermediate to advanced
1272 pages
61h 18m
English
You create a new thread for performing an operation with an instance of the System.Threading.Thread class. The constructor of this class requires you to also specify an instance of the System.Threading.ThreadStart delegate that simply points to a method that can actually do the work. Then you simply invoke the Thread.Start instance method. The following code snippet demonstrates how you can create a new thread:

To actually start the new thread, you invoke the method that encapsulates the thread instance, which in this case is simpleThread.
You might recall from Chapter 21, “Advanced Language ...
Read now
Unlock full access