Is there an out-of-the-box thread pool with multiple queues (that ensure serial processing of each queue)?
问题 Among all my tasks, I have some that must be processed serially (they can never run concurrently and they must be processed in order). I achieved that creating a separated thread pool with a single thread for each group of tasks that must be executed serially. It works but I don't have the resources for that. I don't control the number of groups, so I might end up with a ridiculous number of threads running simultaneously. Is there any way I can accomplish that with a single thread pool? Is