[英]foreground threads vs background threads
Background threads are identical to foreground threads with one exception: a background thread does not keep the managed execution environment running 后台线程与前台线程相同,但有一个例外:后台线程不会使托管执行环境保持运行
Is there any dereference in the Thread Quantum that given by OS to the thread if it were a background thread rather than the foreground threads? 如果线程量子是后台线程而不是前台线程,那么线程量子中是否有任何解除引用? Check this . 检查一下 。
When setting a background thread priority to a higher value like Highest
, will it get more quantum than a foreground one with lower priority? 将后台线程优先级设置为像Highest
这样的较高值时,它会获得比具有较低优先级的前景线程更多的量子吗?
Thanks in advance. 提前致谢。
Managed foreground/background threads, the Windows thread quantum and thread priority are orthogonal concepts. 托管的前台/后台线程,Windows线程量子和线程优先级是正交概念。
Of these three items, only foreground/background pertains to managed code. 在这三个项目中,只有前台/后台与托管代码相关。
Now to your questions. 现在回答你的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.