[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: semaphores



Last i checked openbsd did NOT have POSIX1.b semaphores nor did it have the
_POSIX_THREAD_PROCESS_SHARED attributes. Which makes it pretty hard to
manage a shared memory mapping between two threaded processes. You could
always use SYSV based ipc, however their semantics are almost completely
useless in a threaded environment, primarly because the routines are
unjacketed and block the entire process. The only way i can see would be to
fork a child that blocks in the semaphore operations and communicates with
the parent through a pipe, socketpair or somthing similar. This is obviously
a very ugly solution though. heh.