我设置了最大线程10。然后我说22000的任务使用ThreadPool.QueueUserWorkItem。 它很可能不是所有的22000任务正在运行的程序之后完成。是否有限制多少任务可以排队等待缴费的主题?
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. Is there a limitation how many task can be queued for avaiable threads?
队列中有没有实际的限制但池本身不会超过64等待句柄,即总线程活跃。
The queue has no practical limit however the pool itself will not exceed 64 wait handles, ie total threads active.