0

After looking some questions:

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.)

Cologler
  • 724
  • 6
  • 18
  • I would start with [this answer](http://stackoverflow.com/a/2210128/27358). – David Moles Aug 18 '16 at 23:49
  • @DavidMoles Task Parallel Library use `TaskScheduler.Default` as task scheduler, `TaskScheduler.Default` is `ThreadPoolTaskScheduler`, it call thread pool direct. It is same as `Task.Run()` API. – Cologler Aug 20 '16 at 08:47
  • @DavidMoles Seem like I have to create my own Custom Scheduler. – Cologler Aug 20 '16 at 08:59

0 Answers0