Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: andrew@cucumber.demon.co.uk (Andrew Gabriel)
Subject: Re: A query on DEC pthreads_mutex..
Date: 1997/04/20	[thread overview]
Message-ID: <5jcov6$2c1@cucumber.demon.co.uk> (raw)
In-Reply-To: 33574AE0.36B6@wipsys.stph.net



In article <33574AE0.36B6@wipsys.stph.net>,
	Kamal Kishore Mantri <kamal@wipsys.stph.net> writes:
>Hi,
>
>	In Digital UNIX 4.0, if I allocate the 'pthread_mutex' on 
>shared memory, can I use that mutex for synchronisation among the 
>threads in different processes ?

pthread_mutexs can be either PTHREAD_PROCESS_PRIVATE (default) which
means they only work between threads in the same process, or they
can be PTHREAD_PROCESS_SHARED in which case they work between threads
in different processes also.

I am pretty certain (but not 100%) that Digital UNIX 4.0 does support
PTHREAD_PROCESS_SHARED. Check man pages for pthread_mutexattr_init()
and pthread_mutexattr_setpshared() for how to set PTHREAD_PROCESS_SHARED.

-- 
Andrew Gabriel                        Home: Andrew@cucumber.demon.co.uk
Consultant Software Engineer          Work: Andrew.Gabriel@net-tel.co.uk




  parent reply	other threads:[~1997-04-20  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-18  4:00 A query on DEC pthreads_mutex Kamal Kishore Mantri
1997-04-19  4:00 ` Ron Harter
1997-04-20  4:00 ` Andrew Gabriel [this message]
1997-04-21  4:00   ` Dave Butenhof
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox