更新时间: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.