How to: Create Threads
Thecomponent replaces and adds functionality to the namespace; however, the System.Threading namespace is retained for both backward compatibility and future use, if you choose. For more information, see .
With the .NET Framework, you can create multithreaded applications quickly and easily by providing an object-oriented threading model. Creating a new thread is as easy as declaring it and supplying it with a delegate to the method where the thread is to start. When you are ready to begin execution on the thread, call themethod. There are special considerations involved when working with multiple threads of execution. For information about the techniques involved in working with multiple threads, see .
To create a new thread of execution
Declare the thread.
Create an instance of the thread with the appropriate delegate for the starting point of the thread. Use the AddressOf operator to create the delegate in Visual Basic, or create a newin Visual C#.
When ready, call the System.Threading.Thread.Start method to start the thread.