Hello All:
I am trying to do the following on a FreeBSD platform using their
subset of POSIX threads. The problem lies in that I have an application
library which does file management and uses among other things,
semaphores.
I would to use this library in an executable with a multithreaded
streaming
socket library, but there is a problem here.
The rub lies in that the Unix system V library semaphores provided by
FreeBSD do not seem to be thread safe.
By this I mean is that they seem to suspend the entire process
(rather than just the currently executing thread).
The POSIX thread safe semaphores are NOT installed
(and as far as I know not supported for that architecture).
1) What level of POSIX compatibility is associated with the current
stable FreeBSD release with regards to POSIX Threads?
2) Is thread safe semaphore support necessary for POSIX standards
compliance?
3) What level of compliance doe FreeBSD POSIX have with regards to
pthreads?
4) Is there a mechanism for (POSIX) pthread safe semaphores available
for FreeBSD?
5) If not, is there a work around I can use to emulate the semaphore's
semantics?
Thanks for taking these questions seriously.
Regards:
Bill Maniatty