Subj : Re: pthread priority in Linux 2.4 Kernel To : comp.programming.threads From : David Schwartz Date : Tue Aug 02 2005 12:35 pm "forSale" <@hotmail.com> wrote in message news:G7qdnURgOZzhEXLfRVn-ug@magma.ca... > Now Since thread 2 has higher priority than thread1. Thread1 should never > get executed once thread2 start to run. Why is the thread1 getting > executing again. Your assumption is definitely wrong. Just because one thread has higher priority than another, it doesn't mean the other thread won't run! It just means that if the system ever has to choose which of the two threads to run, it will choose the higher priority one. But maybe it doesn't have to choose because it has two virtual CPUs. Or maybe the higher priority thread is blocked trying to output data to a full buffer. DS .