Creating a thread pool

In this recipe, we will be looking at thread pools in C#. Basically, a thread pool is a collection of threads that can be used to perform tasks in the background. Once a thread completes its task, then it is sent to a pool of waiting threads, where it can be reused. Let's create a .NET Standard 2.0 library that uses thread pools.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.8.110