【发布时间】:2011-04-19 16:36:26
【问题描述】:
下面的代码将启动一个新线程来完成这项工作。有什么办法可以控制该线程的优先级?
Task.Factory.StartNew(() => {
// everything here will be executed in a new thread.
// I want to set the priority of this thread to BelowNormal
});
【问题讨论】:
标签: c# .net multithreading .net-4.0 taskfactory