Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Brian Silver <see@my.sig.for.address>
Subject: Re: MUTEX?
Date: 1997/07/24	[thread overview]
Message-ID: <33D77208.6488@my.sig.for.address> (raw)
In-Reply-To: 5r5tfr$gpr$1@news.rmi.net


Dan Duncan wrote:
> 
> I've got a question from one of our programmers.
> I'm not even exactly sure what a MUTEX is, but in trying
> to use the function call pthread_mutex_init, he gets the error:

A mutex is a data structure (in DECthreads) that allows a program
to enforce mutual exclusion ("mut"-"ex"). It is used to serialize
access to code paths or memory in a multi-threaded program.

On MP Alpha machines it does a little more with respect to
memory "visualization" in that the MP memory subsystem can
re-order memory accesses from different processors in between
memory barrier instructions. (This is probably more than you
asked for, but the moral of the story is use mutexes for reads
as well as writes.)

> 
> The system lacks the necessary resources to initialize another mutex.
> 
> The system-imposed limit on the total number of mutexes under
> execution by a single user is exceeded.
> 
> Which parameter in the kernel config file do I tweak to fix this?

Well, I'll need to know what version of Digital UNIX you are
running on. It would appear on the surface that you are out of 
heap space, but I will be able to tell you more with more 
information.

Brian.
-- 

Replace ! with @ for email address: silver!zko.dec.com
You'll get better responce sending e-mail rather than
posting.



      reply	other threads:[~1997-07-24  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-07-23  4:00 MUTEX? Dan Duncan
1997-07-24  4:00 ` Brian Silver [this message]
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