From: Jeff Denham <jdenham@brighttiger.com>
Subject: Re: mutex between processes?
Date: 1998/08/05 [thread overview]
Message-ID: <35C85511.E31EBB9E@brighttiger.com> (raw)
In-Reply-To: Ex6osB.CB@orga.com
Aurel Balmosan wrote:
> Currently we use ipc semaphores to sync access of different
> processes to a shared memory region. This appears to be quite
> slow. About 25-30% system time are required due to the system
> calles made.
>
> Now we want to use mutex. (posix mutex) It does appear that
> this can not be used easily for sync different processes on
> shared memory (or mmap memory) For SUN-Solaris-2.5.1 it is
> written in the manual to the pthread_mutex that it can be used
> also for different processes via mmap or shared memory.
> (not only for tasks within a process)
>
> Is there something equal on OSF1 (DecUnix-4.0[abcd]) Important
> is that no system call need to be made.
The interprocess mutexes are called PSHARED (process-shared)
by POSIX. They're supposed to be available in the next major
release of, ahem, Compaq's Digital UNIX. I've lost track
of when that release is due to ship.
Sorry to disappoint on another front: a PSHARED implementation
is probably going to make a system call when there's contention
on the mutex. With no contention, the thread can lock and
go, but with contention, it's probably going to block in the
kernel, and that takes a system call.
__________________________________________________
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
next prev parent reply other threads:[~1998-08-05 4:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-08-04 4:00 mutex between processes? Aurel Balmosan
1998-08-05 4:00 ` Jeff Denham [this message]
1998-08-05 4:00 ` Dirk Grunwald
1998-08-07 4:00 ` Aurel Balmosan
1998-08-07 4:00 ` Jeff Denham
1998-08-07 4:00 ` Aurel Balmosan
1998-08-07 4:00 ` Monty Brandenberg
1998-08-09 4:00 ` Aurel Balmosan
1998-08-10 4:00 ` Dirk Grunwald
1998-08-10 4:00 ` Monty Brandenberg
1998-08-10 4:00 ` Dirk Grunwald
1998-08-10 4:00 ` Monty Brandenberg
1998-08-11 4:00 ` Aurel Balmosan
1998-08-11 4:00 ` Monty Brandenberg
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