Re: threading



Depends on what you mean by "intercept".

The scheduler will preempt execution of lower priority threads with higher
priority threads. There are some cases where the priority of a thread gets
increased by the scheduler to prevent inversion or deadlocking, and a thread
has a quantum, so it might not run to full completion if it takes a long
time (> 50ms) and there is another thread at the same priority waiting.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com


"Moshe Peleg" <mpeleg@xxxxxxxxxxxxxxx> wrote in message
news:uK0sv%23vvHHA.736@xxxxxxxxxxxxxxxxxxxxxxx
Can a high priority thread intercept a lower priority thread in the middle
of a function ?



.



Relevant Pages

  • Re: threading
    ... The scheduler will preempt execution of lower priority threads with higher ... Chris Tacke, Embedded MVP ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Massive performance loss from OS::sleep hack
    ... It's odd that Sun would take this position since the POSIX behavior ... priority threads will always run before lower priority threads. ... is not obtainable on a POSIX compliant system using sched_yield ...
    (freebsd-performance)
  • Re: Massive performance loss from OS::sleep hack
    ... testing one of the JCK tests was deadlocking. ... It's odd that Sun would take this position since the POSIX behavior ... priority threads will always run before lower priority threads. ...
    (freebsd-performance)