June 2003
Intermediate to advanced
800 pages
34h 20m
English
You need to create an unbounded number of threads without degrading performance.
Use the ThreadPool class to map a large number of tasks to a fixed number of reusable threads.
The System.Threading.ThreadPool class allows you to execute code using a pool of threads provided by the common language runtime. Using this pool simplifies your code, and it can improve performance, particularly if you use a large number of short-lived threads. The ThreadPool class avoids the overhead of continually creating and destroying threads by using a pool of reusable threads. You use the ThreadPool class to queue a task, and the task is processed on the first available thread. The ThreadPool class is capped at 25 threads ...
Read now
Unlock full access