🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #2087

Re: Why ordered mutexed don't work ...

#2087
From: Scott Lurndal
Date: Wed, 02 Dec 2026 15:30
9 lines
1058 bytes
Bonita Montero <Bonita.Montero@gmail.com> writes:
>Just for fun, I tried writing a mutex today that wakes up threads
>in the same order they began waiting.

Why?

Shouldn't the thread priority be considered when scheduling
the waiters?
Technical Details
Message-ID: <0QWPS.327356$ZAo7.277401@fx18.iad>
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer04.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx18.iad.POSTED!not-for-mail
References: <11ep150$2vi4k$1@raubtier-asyl.eternal-september.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer04.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx18.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Why ordered mutexed don't work ...
Newsgroups: comp.lang.c
References: <11ep150$2vi4k$1@raubtier-asyl.eternal-september.org>
Lines: 9
Message-ID: <0QWPS.327356$ZAo7.277401@fx18.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 02 Dec 2026 15:30:04 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 02 Dec 2026 15:30:04 GMT
X-Received-Bytes: 834