Languages
[Edit]
EN

C#/.NET - max and min number of threads in thread pool

5 points
Created by:
Root-ssh
178170

To set up max and min number of threads in ThreadPool class, ThreadPool.SetMinThreads and ThreadPool.SetMaxThreads methods could be useful.

1. Max and min number of threads example

Edit

Output:

 Note: Notice that, only 2 tasks are executed in the same time.

2. Resources

Edit
  1. ThreadPool Class - Microsoft Docs
  2. ThreadPool.SetMinThreads - Microsoft Docs
  3. ThreadPool.SetMaxThreads - Micosoft Docs
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

C# - Thread Class

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join