From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,dc8f2364b2ebee6,start X-Google-Attributes: gidfee84,public From: heiby_u@falkor.chi.il.us (Ron Heiby) Subject: Inter-Process Mutexes? Date: 1998/05/28 Message-ID: <356d810f.20468917@149.174.211.108>#1/1 X-Deja-AN: 357134524 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Organization: Strategis Consulting Inc. MIME-Version: 1.0 Newsgroups: comp.unix.osf.osf1 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.