Subj : Re: pthread priority in Linux 2.4 Kernel To : comp.programming.threads From : David Schwartz Date : Tue Aug 02 2005 08:28 pm "forSale" <@hotmail.com> wrote in message news:QO6dnYKiLIR3cnLfRVn-sA@magma.ca... > Hi David, > I see what you are seeing. You are saying if Linux runs on multipe > virtual > CPUs, then each CPU can runs its a thread.Thus allowing all thread > regardless of its priroty to run concurrently. How do I control the > virtual > CPU. How do I configure only 1 virtual CPU. > How do I know how many virtual CPU the current linux is running on. You are totally, totally going down the wrong road. You *CANNOT* use the scheduler as a synhronization mechanism. If you need synchronization and exclusion, you need to use things like mutexes. DS .