Subj : Re: Boss Told Me You Can't Use Semaphore, But I Have To Do Something like It! To : comp.programming.threads From : Frank Cusack Date : Tue Jul 12 2005 11:50 am On 12 Jul 2005 06:30:11 -0700 clusardi2k@aol.com wrote: > The way I see it is the flag described above is a critical > section and must be protected by a mutual exclusion semaphore. Absolutely. > I don't see anything wrong with using shared memory for sending > parameters to the service routine. > > My boss says I am not allowed to use semaphores due to > unexplained reasons. typedef not_a_sem_t sem_t; Of course you can use a mutex (as opposed to semaphore) and is probably preferred except that process-shared mutexes aren't supported on Linux (unless very recently). /fc .