且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在线程池的C#低线程优先级

更新时间:2023-11-13 17:26:28

当您使用线程池中的所有线程的默认优先级执行构建。如果你陷入困境与此设置会被忽略。这是你应该推出自己的线程池的情况。几年前,我扩展了 SmartThreadPool 来满足我的需求。这可能会满足你的为好。

When you are using the build in ThreadPool all threads execute with the default priority. If you mess with this setting it will be ignored. This is a case where you should roll your own ThreadPool. A few years ago I extended the SmartThreadPool to meet my needs. This may satisfy yours as well.