.NET threading - How
does multi-threading work in .NET? - March 13, 2009 at 15:20 PM by Amit
Satpute
How does multi-threading work in .NET?
There are two main ways of multi-threading which .NET encourages:
To start your own threads with ThreadStart delegates, you should create a new
thread "manually" for long-running tasks.
Using the ThreadPool class either directly (using ThreadPool.QueueUserWorkItem)
or indirectly using asynchronous methods (such as Stream.BeginRead, or calling
BeginInvoke on any delegate).
Use the thread pool only for brief jobs.
<<Previous
Next>>
|