After looking some questions:
- What is the .NET equivalent of Java's java.util.concurrent package?
- Is there a .Net equivalent to java.util.concurrent.Executor?
- C# equivalent for Java ExecutorService.newSingleThreadExecutor(), or: how to serialize mulithreaded access to a resource
They are not I want.
The max worker thread count is limited (ThreadPool.GetMaxThreads
).
When I use Task.Run()
API,
after put toooooooo many low priority level task, I cannot execute a high priority level task immediately..
Any idea without create my own task queue?
(In java or python, I can use two Executor to do this.)