Understanding the .NET Thread Pool

In the previous section you saw how simple it is to create and run a new thread. When you have one or two threads, things are also easy for performance. But if you decide to split a process or an application across lots of concurrent threads, the previous approach can cause performance and resources overhead. So you should manually search for the best configuration to fine-tune system resources consumption with your threads. Your application can run on different configurations in terms of available memory, processors, and general resources, so it is difficult to predict how many threads you can launch concurrently on target machines without affecting performance and causing overhead. Fortunately the .NET Framework ...

Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.