Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sun, 10 Feb 2019 09:52:17 -0500
From: Rich Felker <dalias@...c.org>
To: Johann Hanne <jml@...ne.name>
Cc: musl@...ts.openwall.com
Subject: Re: Plan to implement
 pthread_mutexattr_setprotocol(PRIO_INHERIT)

On Sun, Feb 10, 2019 at 09:32:29AM +0100, Johann Hanne wrote:
> are there any plans for an implementation of
> pthread_mutexattr_setprotocol(PRIO_INHERIT)?
> 
> Am I missing an alternative? My intention is to temporarily boost
> the priority of a lower-prio thread in case it is holding a mutex
> which prevents a higher-prio thread from running.

There aren't plans in the sense of a schedule for it happening, but
the intent is that this feature eventually be supported. If there's
something you need it for we can discuss getting it done.

Priority protection (PRIO_PROTECT) on the other hand I'm not so sure
about. Due to lack of any support on the kernel side, the approach
glibc uses for it requires some really fragile memorization and
changing/restoring of thread priorities from userspace. I think it
would need a stronger motivation to overcome reasons for not doing it.

Rich

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.