From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,124d317380a0c216 X-Google-Attributes: gidfa528,public X-Google-Thread: 10650a,124d317380a0c216 X-Google-Attributes: gid10650a,public X-Google-ArrivalTime: 2002-01-07 10:30:46 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!not-for-mail From: David Butenhof Subject: Re: looking for priority inheretance for mutex in digital unix ver 4.0 Newsgroups: comp.unix.internals,comp.unix.tru64 Followup-To: comp.unix.tru64 References: User-Agent: KNode/0.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-ID: Date: Mon, 07 Jan 2002 13:24:41 -0500 NNTP-Posting-Host: 16.31.48.112 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 1010428241 16.31.48.112 (Mon, 07 Jan 2002 10:30:41 PST) NNTP-Posting-Date: Mon, 07 Jan 2002 10:30:41 PST Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.unix.internals:995 comp.unix.tru64:6376 Itamar Caspi wrote: > Our Alfa system works in RT with root permission. > We've encountered a priority inversion problem between our processes. > > I know how to solve this by boosting priorities before locking the > shared memory. > I also know that Solaris solves this problem in OS level using mutexes > and priority inheretance (pthread_mutexattr_setprotocol with > THREAD_PRIO_PROTECT). > > My question is: Does Digital Unix have a solution similar to Solaris, > as described above ? We don't currently implement priority inheritance. It's extraordinarily complicated to do it right, because threads may own multiple mutexes, and all the dependency graph needs to be dealt with when adjusting priorities. It's a "big deal", and we've had too little demand and too many other "big deals" that were easier. If it's ever done, though, I can assure you it will never appear on "version 4.0" (or even 4.0G). It'll be something beyond 5.1A and might possibly show up later as a patch for 5.1 and 5.1A. /------------------[ David.Butenhof@compaq.com ]------------------\ | Compaq Computer Corporation POSIX Thread Architect | | My book: http://www.awl.com/cseng/titles/0-201-63392-2/ | \-----[ http://home.earthlink.net/~anneart/family/dave.html ]-----/