From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,fa7a1429048e0e4d X-Google-Attributes: gidfee84,public From: Brian Silver Subject: Re: MUTEX? Date: 1997/07/24 Message-ID: <33D77208.6488@my.sig.for.address>#1/1 X-Deja-AN: 258517718 References: <5r5tfr$gpr$1@news.rmi.net> Organization: DECthreads Newsgroups: comp.unix.osf.osf1 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.