我正在写一个使用的Windows服务ThreadPool.QueueUserWorkItem().每个线程都是一个短暂的任务.
ThreadPool.QueueUserWorkItem()
当服务停止时,我需要确保当前正在执行的所有线程都完成.有没有办法等待队列自行清除?
multithreading windows-services .net-3.5 threadpool
.net-3.5 ×1
multithreading ×1
threadpool ×1
windows-services ×1