* Inter-Process Mutexes?
@ 1998-05-28 4:00 Ron Heiby
1998-05-28 4:00 ` Jeff Denham
0 siblings, 1 reply; 2+ messages in thread
From: Ron Heiby @ 1998-05-28 4:00 UTC (permalink / raw)
Hi! I learned something new about mutexes the other day. I had thought that
if the location of the mutex was in a memory region visible to multiple
processes, that it would be usable by those multiple processes. I found out
that I was mistaken.
After flailing around for a while, I discovered the PTHREAD_PROCESS_SHARED
mutex attribute. Shortly after that, I found that Digital UNIX 3.2G does not
support this (apparently optional) attribute. Digging a bit further, I found
in the 4.0 documentation that it is not supported there, either.
What is the appropriate substitute? I know that I can use the System V IPC
semaphores to do this, but mutexes are so much simpler....
Thanks!
--
Ron.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Inter-Process Mutexes?
1998-05-28 4:00 Inter-Process Mutexes? Ron Heiby
@ 1998-05-28 4:00 ` Jeff Denham
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Denham @ 1998-05-28 4:00 UTC (permalink / raw)
Ron Heiby wrote:
> Hi! I learned something new about mutexes the other day. I had thought that
> if the location of the mutex was in a memory region visible to multiple
> processes, that it would be usable by those multiple processes. I found out
> that I was mistaken.
>
> After flailing around for a while, I discovered the PTHREAD_PROCESS_SHARED
> mutex attribute. Shortly after that, I found that Digital UNIX 3.2G does not
> support this (apparently optional) attribute. Digging a bit further, I found
> in the 4.0 documentation that it is not supported there, either.
>
> What is the appropriate substitute? I know that I can use the System V IPC
> semaphores to do this, but mutexes are so much simpler....
>
> Thanks!
>
> --
> Ron.
You'll have to wait until version 5.0 for process-shared synch objects.
In the meantime, you can use POSIX realtime semaphores instead
of System V. They're much simpler to use, I think.
Jeff
__________________________________________________
Jeff Denham (jdenham@brighttiger.com)
Bright Tiger Technologies
SmartCluster� Software for Distributed Web Servers
http://www.brighttiger.com
125 Nagog Park
Acton, MA 01720
Phone: (978) 263-5455 x177
Fax: (978) 263-5547
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-05-28 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-28 4:00 Inter-Process Mutexes? Ron Heiby
1998-05-28 4:00 ` Jeff Denham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox