"Dimitar V. Peikov" wrote:
> 
> I've tryed to make some example on using pthreads and semaphores and found
> that process became blocked if inside of critical section use wait, uwait or
> nanowait finctions. In the attached file if change line : (#if 0) to (#if 1)
> the program hangs. I've tested it even with gdb and the threads were blocked
> after wait finction.

Semaphores aren't wrapped by the threads library (yes, they can block
the whole process).  This will be resolved in our future libpthread
(for info on that, search -arch and -smp in reference to the KSE project).

-- 
Dan Eischen


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to