Subj : Re: pthreads and semaphore - Beginer question To : comp.programming.threads From : Fester Date : Tue Aug 09 2005 03:38 am plinius@gmail.com wrote: --------[ 8< ]-------------- > > > But it allways saying there is an unhandled exeption > > What is wrong in the code? How should I do what I want? > > Thanks for any input/ideas... Ehm... Maybe a stupid question but isn't a mutex sufficient in this case? (semaphore was created blocking accordingly to the start value) semaphores are quite expensive and usually used between processes and not threads. -- Kind regards Fester ________________________________________________________________________ Never look up when dragons fly overhead. .