Subj : Re: Can you limit the number of Posts to a POSIX semaphore? To : comp.programming.threads From : David Schwartz Date : Wed Aug 10 2005 04:18 am "Frank J. Lhota" wrote in message news:jjvIe.14425$2y2.11099@trndny02... > I'm looking into porting a Win32 program to Linux. This program makes use > of the fact that a Win32 semaphore is created with both an initial value > and a maximum value. For example, > > hSem = CreateSemaphore (NULL, 1, 3, NULL); I would use a mutex, condition variable, and count value to create a semaphore with the exact semantics you want. It's not at all difficult. DS .