Part 23 :- Thread Pool in C# | Multithreading/asynchronous and Parallel Programming in C#

preview_player
Показать описание
Thread pool in C# is nothing but a collection of threads that can be reused to perform no of tasks in the background. Now when a request comes, then it directly goes to the thread pool and checks whether there are any free threads available or not. If available, then it takes the thread object from the thread pool and executes the task.

Once the thread completes its task then it again sent back to the thread pool so that it can reuse. This reusability avoids an application to create the number of threads and this enables less memory consumption.

Support Us

#csharp #multithread #csharpprogramming
Рекомендации по теме