Reputation: 16162
MSDN states that:
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?
Thanks in advance.
Upvotes: 12
Views: 7500
Reputation: 613511
Managed foreground/background threads, the Windows thread quantum and thread priority are orthogonal concepts.
Of these three items, only foreground/background pertains to managed code.
Now to your questions.
Upvotes: 24