Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Slowly and surely the unix crept up on the Nintendo user ...


devel / comp.unix.programmer / Re: Ordering of sem_wait waiters

SubjectAuthor
o Re: Ordering of sem_wait waitersTseng ZH

1
Re: Ordering of sem_wait waiters

<ff4a563f-46c3-417d-8cba-43c388859aean@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17035&group=comp.unix.programmer#17035

  copy link   Newsgroups: comp.unix.programmer
X-Received: by 2002:ad4:5961:0:b0:435:a1d7:c243 with SMTP id eq1-20020ad45961000000b00435a1d7c243mr2289166qvb.46.1646882867333;
Wed, 09 Mar 2022 19:27:47 -0800 (PST)
X-Received: by 2002:a81:fe01:0:b0:2dc:1f0:441e with SMTP id
j1-20020a81fe01000000b002dc01f0441emr2311960ywn.227.1646882867003; Wed, 09
Mar 2022 19:27:47 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.programmer
Date: Wed, 9 Mar 2022 19:27:46 -0800 (PST)
In-Reply-To: <20170223191911.587@kylheku.com>
Injection-Info: google-groups.googlegroups.com; posting-host=123.194.172.196; posting-account=AX6M1woAAAB6n2KWRaUoXTXP5W7GIZZ7
NNTP-Posting-Host: 123.194.172.196
References: <jn94hj$d93$1@dont-email.me> <57d37c34-5ca2-4bee-92a8-214e131fb4b4@googlegroups.com>
<20170223191911.587@kylheku.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ff4a563f-46c3-417d-8cba-43c388859aean@googlegroups.com>
Subject: Re: Ordering of sem_wait waiters
From: zhtzeng@gmail.com (Tseng ZH)
Injection-Date: Thu, 10 Mar 2022 03:27:47 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Tseng ZH - Thu, 10 Mar 2022 03:27 UTC

Kaz Kylheku 在 2017年2月24日 星期五上午11:20:10 [UTC+8] 的信中寫道:
> On 2017-02-24, zhan...@conew.com <zhan...@conew.com> wrote:
> > 在 2012年4月25日星期三 UTC+8下午11:17:09,Noob写道:
> ^^^^^
> >> Hello everyone,
> >>
> >> The (proprietary) OS I've been working with provides two "types"
> >> of semaphores: fifo or prio.
> >
> > This discussion is useful.
>
> It's also almost five years old and not going on any more.

According to below link, I think it doesn't guarantee any order.
https://man7.org/linux/man-pages/man2/futex.2.html

FUTEX_WAKE (since Linux 2.6.0)
This operation wakes at most val of the waiters that are
waiting (e.g., inside FUTEX_WAIT) on the futex word at the
address uaddr. Most commonly, val is specified as either
1 (wake up a single waiter) or INT_MAX (wake up all
waiters). No guarantee is provided about which waiters
are awoken (e.g., a waiter with a higher scheduling
priority is not guaranteed to be awoken in preference to a
waiter with a lower priority).

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor