The Old New Thing

Consequences of the scheduling algorithm: Low priority threads can run even when higher priority threads are running

Just because you have a thread running at a higher priority level doesn't mean that no threads of lower priority will ever run. Occasionally, I see people write multi-threaded code and put one thread's priority higher than the other, assuming that this will prevent the lower-priority thread from interfering with the operation of the higher-...