Maximum queued elements in ThreadPool.QueueUserWorkItem

后端 未结 4 1722
醉梦人生
醉梦人生 2020-12-31 18:19

I set the max thread to 10. Then I added 22000 task using ThreadPool.QueueUserWorkItem. It is very likely that not all the 22000 task was completed after running the program

4条回答
  •  萌比男神i
    2020-12-31 18:50

    The queue has no practical limit however the pool itself will not exceed 64 wait handles, ie total threads active.

提交回复
热议问题