Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Unix is a Registered Bell of AT&T Trademark Laboratories. -- Donn Seeley


devel / comp.lang.c++ / Re: Run this under Windows and Linux

SubjectAuthor
* Run this under Windows and LinuxBonita Montero
+* Re: Run this under Windows and LinuxChris M. Thomasson
|`* Re: Run this under Windows and LinuxBonita Montero
| +- Re: Run this under Windows and LinuxBranimir Maksimovic
| `* Re: Run this under Windows and LinuxChris M. Thomasson
|  +* Re: Run this under Windows and LinuxBonita Montero
|  |+* Re: Run this under Windows and LinuxBonita Montero
|  ||+* Re: Run this under Windows and LinuxBonita Montero
|  |||`* Re: Run this under Windows and LinuxScott Lurndal
|  ||| `* Re: Run this under Windows and LinuxBonita Montero
|  |||  `* Re: Run this under Windows and LinuxChris M. Thomasson
|  |||   `* Re: Run this under Windows and LinuxBonita Montero
|  |||    `* Re: Run this under Windows and LinuxChris M. Thomasson
|  |||     +* Re: Run this under Windows and LinuxChris M. Thomasson
|  |||     |+- Re: Run this under Windows and LinuxBonita Montero
|  |||     |`* Re: Run this under Windows and LinuxScott Lurndal
|  |||     | +- Re: Run this under Windows and LinuxBonita Montero
|  |||     | `* Re: Run this under Windows and LinuxChris M. Thomasson
|  |||     |  `- Re: Run this under Windows and LinuxChris M. Thomasson
|  |||     `* Re: Run this under Windows and LinuxScott Lurndal
|  |||      +* Re: Run this under Windows and LinuxChris M. Thomasson
|  |||      |`- Re: Run this under Windows and LinuxChris M. Thomasson
|  |||      `* Re: Run this under Windows and LinuxBonita Montero
|  |||       `- Re: Run this under Windows and LinuxChris M. Thomasson
|  ||+* Re: Run this under Windows and LinuxChris M. Thomasson
|  |||`- Re: Run this under Windows and LinuxBonita Montero
|  ||+* Re: Run this under Windows and LinuxKaz Kylheku
|  |||+- Re: Run this under Windows and LinuxChris M. Thomasson
|  |||`- Re: Run this under Windows and LinuxChris M. Thomasson
|  ||`* Re: Run this under Windows and LinuxMichael S
|  || `* Re: Run this under Windows and LinuxBonita Montero
|  ||  `- Re: Run this under Windows and LinuxChris M. Thomasson
|  |`* Re: Run this under Windows and LinuxChris M. Thomasson
|  | `* Re: Run this under Windows and LinuxBonita Montero
|  |  +* Re: Run this under Windows and LinuxScott Lurndal
|  |  |+* Re: Run this under Windows and LinuxDavid Brown
|  |  ||+- Re: Run this under Windows and LinuxBonita Montero
|  |  ||`* Re: Run this under Windows and LinuxChris M. Thomasson
|  |  || `* Re: Run this under Windows and LinuxDavid Brown
|  |  ||  +- Re: Run this under Windows and LinuxChris M. Thomasson
|  |  ||  `- Re: Run this under Windows and LinuxChris M. Thomasson
|  |  |`* Re: Run this under Windows and LinuxBonita Montero
|  |  | `* Re: Run this under Windows and LinuxKaz Kylheku
|  |  |  `* Re: Run this under Windows and LinuxMichael S
|  |  |   `* Re: Run this under Windows and LinuxChris M. Thomasson
|  |  |    `- Re: Run this under Windows and LinuxKaz Kylheku
|  |  `* Re: Run this under Windows and LinuxKaz Kylheku
|  |   `* Re: Run this under Windows and LinuxBonita Montero
|  |    `* Re: Run this under Windows and LinuxKaz Kylheku
|  |     +* Re: Run this under Windows and LinuxBonita Montero
|  |     |`* Re: Run this under Windows and LinuxDavid Brown
|  |     | `* Re: Run this under Windows and LinuxBonita Montero
|  |     |  +* Re: Run this under Windows and LinuxDavid Brown
|  |     |  |`* Re: Run this under Windows and LinuxBonita Montero
|  |     |  | `* Re: Run this under Windows and LinuxDavid Brown
|  |     |  |  `* Re: Run this under Windows and LinuxBonita Montero
|  |     |  |   +* Re: Run this under Windows and LinuxDavid Brown
|  |     |  |   |+* Re: Run this under Windows and LinuxBonita Montero
|  |     |  |   ||+- Re: Run this under Windows and LinuxKaz Kylheku
|  |     |  |   ||+- Re: Run this under Windows and LinuxScott Lurndal
|  |     |  |   ||+- Re: Run this under Windows and LinuxChris M. Thomasson
|  |     |  |   ||`* Re: Run this under Windows and LinuxDavid Brown
|  |     |  |   || `* Re: Run this under Windows and LinuxBonita Montero
|  |     |  |   ||  `* Re: Run this under Windows and LinuxDavid Brown
|  |     |  |   ||   `- Re: Run this under Windows and LinuxBonita Montero
|  |     |  |   |+- Re: Run this under Windows and LinuxScott Lurndal
|  |     |  |   |`- Re: Run this under Windows and LinuxChris M. Thomasson
|  |     |  |   +* Re: Run this under Windows and LinuxKaz Kylheku
|  |     |  |   |`* Re: Run this under Windows and LinuxBonita Montero
|  |     |  |   | +* Re: Run this under Windows and LinuxKaz Kylheku
|  |     |  |   | |`* Re: Run this under Windows and LinuxBonita Montero
|  |     |  |   | | `* Re: Run this under Windows and LinuxBonita Montero
|  |     |  |   | |  `- Re: Run this under Windows and LinuxChris M. Thomasson
|  |     |  |   | `* Re: Run this under Windows and LinuxScott Lurndal
|  |     |  |   |  `* Re: Run this under Windows and LinuxBonita Montero
|  |     |  |   |   `* Re: Run this under Windows and LinuxKaz Kylheku
|  |     |  |   |    `* Re: Run this under Windows and LinuxBonita Montero
|  |     |  |   |     +* Re: Run this under Windows and LinuxScott Lurndal
|  |     |  |   |     |`- Re: Run this under Windows and LinuxBonita Montero
|  |     |  |   |     `- Re: Run this under Windows and LinuxKaz Kylheku
|  |     |  |   `* Re: Run this under Windows and LinuxChris M. Thomasson
|  |     |  |    +- Re: Run this under Windows and LinuxBonita Montero
|  |     |  |    `* Re: Run this under Windows and LinuxBonita Montero
|  |     |  |     `* Re: Run this under Windows and LinuxChris M. Thomasson
|  |     |  |      +* Re: Run this under Windows and LinuxBonita Montero
|  |     |  |      |`* Re: Run this under Windows and LinuxChris M. Thomasson
|  |     |  |      | `* Re: Run this under Windows and LinuxKaz Kylheku
|  |     |  |      |  `* Re: Run this under Windows and LinuxChris M. Thomasson
|  |     |  |      |   `- Re: Run this under Windows and LinuxKaz Kylheku
|  |     |  |      `- Re: Run this under Windows and LinuxBonita Montero
|  |     |  +* Re: Run this under Windows and LinuxKaz Kylheku
|  |     |  |`- Re: Run this under Windows and LinuxDavid Brown
|  |     |  +* Re: Run this under Windows and LinuxScott Lurndal
|  |     |  |+* Re: Run this under Windows and LinuxBonita Montero
|  |     |  ||`* Re: Run this under Windows and LinuxChris M. Thomasson
|  |     |  || `* Re: Run this under Windows and LinuxBonita Montero
|  |     |  ||  `* Re: Run this under Windows and LinuxChris M. Thomasson
|  |     |  ||   `* Re: Run this under Windows and LinuxBonita Montero
|  |     |  ||    `* Re: Run this under Windows and LinuxKaz Kylheku
|  |     |  ||     `* Re: Run this under Windows and LinuxBonita Montero
|  |     |  ||      +* Re: Run this under Windows and LinuxChris M. Thomasson
|  |     |  ||      `* Re: Run this under Windows and LinuxKaz Kylheku
|  |     |  |`- Re: Run this under Windows and LinuxChris M. Thomasson
|  |     |  `* Re: Run this under Windows and LinuxChris M. Thomasson
|  |     `- Re: Run this under Windows and LinuxChris M. Thomasson
|  `* Re: Run this under Windows and LinuxBonita Montero
`* Re: Run this under Windows and LinuxBranimir Maksimovic

Pages:1234567
Re: Run this under Windows and Linux

<ui9qhq$bra3$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2457&group=comp.lang.c%2B%2B#2457

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.Montero@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Mon, 6 Nov 2023 05:37:15 +0100
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <ui9qhq$bra3$1@raubtier-asyl.eternal-september.org>
References: <uhnl0h$bm9a$1@dont-email.me> <uhp2gk$jvlg$1@dont-email.me>
<uhqrnb$11io0$1@dont-email.me> <uhrprb$175ve$1@dont-email.me>
<uhtekk$1jn05$1@dont-email.me> <uhual7$1omhf$4@dont-email.me>
<uhveha$22bbn$2@dont-email.me> <20231102083305.904@kylheku.com>
<ui0gbs$29990$3@dont-email.me> <20231102085649.385@kylheku.com>
<ui0ijl$29qan$1@dont-email.me> <ui2do8$2ngpf$2@dont-email.me>
<ui2jik$2of1r$1@dont-email.me> <kA91N.279085$8fO.263728@fx15.iad>
<ui39gf$2s28j$2@dont-email.me> <ui3s05$2vc30$10@dont-email.me>
<ui526u$3a606$4@dont-email.me> <ui66u7$3haup$2@dont-email.me>
<ui7653$3qrgt$3@dont-email.me> <20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9nfn$bgou$1@raubtier-asyl.eternal-september.org>
<20231105200241.0@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 6 Nov 2023 04:37:14 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="318b8db1129a3b72186b4c7679f8a97a";
logging-data="388419"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/lw4KyjFO9bSERvdHjFDO72EdbWevgM9E="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:SlHMMST3S3lJ1YTGgj0gUx86EJk=
In-Reply-To: <20231105200241.0@kylheku.com>
Content-Language: de-DE
 by: Bonita Montero - Mon, 6 Nov 2023 04:37 UTC

Am 06.11.2023 um 05:22 schrieb Kaz Kylheku:

> Umm, nope! Because you can't use a mutex, for instance, in
> signaling "item available" in a producer consumer queue.

So can you make a producer-consumer-queue with a benaphore ?

Re: Run this under Windows and Linux

<ui9rsv$bups$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2458&group=comp.lang.c%2B%2B#2458

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Sun, 5 Nov 2023 21:00:15 -0800
Organization: A noiseless patient Spider
Lines: 78
Message-ID: <ui9rsv$bups$1@dont-email.me>
References: <uhnl0h$bm9a$1@dont-email.me> <uhp2gk$jvlg$1@dont-email.me>
<uhqrnb$11io0$1@dont-email.me> <uhrprb$175ve$1@dont-email.me>
<uhtekk$1jn05$1@dont-email.me> <uhual7$1omhf$4@dont-email.me>
<uhveha$22bbn$2@dont-email.me> <20231102083305.904@kylheku.com>
<ui0gbs$29990$3@dont-email.me> <20231102085649.385@kylheku.com>
<ui0ijl$29qan$1@dont-email.me> <ui2do8$2ngpf$2@dont-email.me>
<ui2jik$2of1r$1@dont-email.me> <kA91N.279085$8fO.263728@fx15.iad>
<ui39gf$2s28j$2@dont-email.me> <ui3s05$2vc30$10@dont-email.me>
<ui526u$3a606$4@dont-email.me> <ui66u7$3haup$2@dont-email.me>
<ui7653$3qrgt$3@dont-email.me> <20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9nfn$bgou$1@raubtier-asyl.eternal-september.org>
<20231105200241.0@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 6 Nov 2023 05:00:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f32969d4d7c755d3c610825aaa34a086";
logging-data="391996"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19TE8oGm+ED60qpP1rIm/DsGpLWCv1BYqQ="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:usjphmMrQKmRpbufjxIGpIVVwIE=
In-Reply-To: <20231105200241.0@kylheku.com>
Content-Language: en-US
 by: Chris M. Thomasson - Mon, 6 Nov 2023 05:00 UTC

On 11/5/2023 8:22 PM, Kaz Kylheku wrote:
> On 2023-11-06, Bonita Montero <Bonita.Montero@gmail.com> wrote:
>> Am 05.11.2023 um 21:12 schrieb Chris M. Thomasson:
>>> On 11/5/2023 9:55 AM, Bonita Montero wrote:
>>>> Am 05.11.2023 um 18:25 schrieb Kaz Kylheku:
>>>>> On 2023-11-05, Bonita Montero <Bonita.Montero@gmail.com> wrote:
>>>>>> google for ... and you'll see a lot of people telling the same
>>>>>> like me.
>>>>>
>>>>> Bandwagon Fallacy
>>>>>
>>>>> https://en.wikipedia.org/wiki/Argumentum_ad_populum
>>>>
>>>> In most cases experts are right if they agree on a certain fact.
>>>>
>>>
>>> Sorry buddy! A benaphore is a semaphore. ...
>>
>> If you take it like that every mutex is also a binary semaphore.
>
> Umm, nope! Because you can't use a mutex, for instance, in
> signaling "item available" in a producer consumer queue.
>
> You can't have a producer doing nothing but unlock(mutex) to signal that
> it has added an item, and a consumer doing nothing but lock(mutex).
>
> If that happens to work, then we know the mutex is really a semaphore.
>
> If it works, but the documentation says that the behavior is undefined,
> we probably shouldn't do that, but use something that is documented.
>
> No mutex provided in any mainstream operating system supports this
> as a documented case that is required to work.
>
> No implementation of POSIX mutexes, not Windows' CRITICAL_SECTION, not
> Win32 Mutexes, not C++ or ISO C mutexes.
>
> You don't care that something is undefined because you're a professional
> troll, not a professional developer.
>

Check out this bakery algorithm I did wrt a multi producer consumer queue:

https://groups.google.com/g/lock-free/c/acjQ3-89abE/m/a6-Di0GZsyEJ

Pretty nice, and can be used with futexes to get rid of the spins.

<pseudo code, membars aside for a moment>
______________________________________________
struct cell { uint32_t ver; double state; };

uint32_t head = 0;
uint32_t tail = 0;
cell cells[N]; // N must be a power of 2

void init() {
for (uint32_t i = 0; i < N; ++i) cells[i].ver = i;
}

void producer(double state) {
uint32_t ver = XADD(&head, 1);
cell& c = cells[ver & (N - 1)];
while (LOAD(&c.ver) != ver) backoff();
c.state = state;
STORE(&c.ver, ver + 1);
}

double consumer() {
uint32_t ver = XADD(&tail, 1);
cell& c = cells[ver & (N - 1)];
while (LOAD(&c.ver) != ver + 1) backoff();
double state = c.state;
STORE(&c.ver, ver + N);
return state;
} ______________________________________________

Pretty elegant logic...

Re: Run this under Windows and Linux

<ui9rvh$bups$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2459&group=comp.lang.c%2B%2B#2459

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Sun, 5 Nov 2023 21:01:37 -0800
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <ui9rvh$bups$2@dont-email.me>
References: <uhnl0h$bm9a$1@dont-email.me> <uhp2gk$jvlg$1@dont-email.me>
<uhqrnb$11io0$1@dont-email.me> <uhrprb$175ve$1@dont-email.me>
<uhtekk$1jn05$1@dont-email.me> <uhual7$1omhf$4@dont-email.me>
<uhveha$22bbn$2@dont-email.me> <20231102083305.904@kylheku.com>
<ui0gbs$29990$3@dont-email.me> <20231102085649.385@kylheku.com>
<ui0ijl$29qan$1@dont-email.me> <ui2do8$2ngpf$2@dont-email.me>
<ui2jik$2of1r$1@dont-email.me> <kA91N.279085$8fO.263728@fx15.iad>
<ui39gf$2s28j$2@dont-email.me> <ui3s05$2vc30$10@dont-email.me>
<ui526u$3a606$4@dont-email.me> <ui66u7$3haup$2@dont-email.me>
<ui7653$3qrgt$3@dont-email.me> <20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9nfn$bgou$1@raubtier-asyl.eternal-september.org>
<20231105200241.0@kylheku.com>
<ui9qhq$bra3$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 6 Nov 2023 05:01:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f32969d4d7c755d3c610825aaa34a086";
logging-data="391996"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/8CdjqQnHlXRudNKd9sMWLOuzwfCl3vqI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:8VQNPdnb/MICzgVQKGpLX3rmLEk=
In-Reply-To: <ui9qhq$bra3$1@raubtier-asyl.eternal-september.org>
Content-Language: en-US
 by: Chris M. Thomasson - Mon, 6 Nov 2023 05:01 UTC

On 11/5/2023 8:37 PM, Bonita Montero wrote:
> Am 06.11.2023 um 05:22 schrieb Kaz Kylheku:
>
>> Umm, nope! Because you can't use a mutex, for instance, in
>> signaling "item available" in a producer consumer queue.
>
> So can you make a producer-consumer-queue with a benaphore ?

Huh? You can use a semaphore to allow a multi producer consumer queue to
wait in the kernel for its slow paths. This is rather basic Bonita. wow.

Re: Run this under Windows and Linux

<ui9s0m$bups$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2460&group=comp.lang.c%2B%2B#2460

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Sun, 5 Nov 2023 21:02:14 -0800
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <ui9s0m$bups$3@dont-email.me>
References: <uhnl0h$bm9a$1@dont-email.me> <uhp2gk$jvlg$1@dont-email.me>
<uhqrnb$11io0$1@dont-email.me> <uhrprb$175ve$1@dont-email.me>
<uhtekk$1jn05$1@dont-email.me> <uhual7$1omhf$4@dont-email.me>
<uhveha$22bbn$2@dont-email.me> <20231102083305.904@kylheku.com>
<ui0gbs$29990$3@dont-email.me> <20231102085649.385@kylheku.com>
<ui0ijl$29qan$1@dont-email.me> <ui2do8$2ngpf$2@dont-email.me>
<ui2jik$2of1r$1@dont-email.me> <kA91N.279085$8fO.263728@fx15.iad>
<ui39gf$2s28j$2@dont-email.me> <ui3s05$2vc30$10@dont-email.me>
<ui526u$3a606$4@dont-email.me> <ui66u7$3haup$2@dont-email.me>
<ui7653$3qrgt$3@dont-email.me> <20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9p9c$bn6v$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 6 Nov 2023 05:02:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f32969d4d7c755d3c610825aaa34a086";
logging-data="391996"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18nRb3yUCCFmI8aCfOf7W3TjvWu8DsXo1Y="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Hb/mz43cK0EJ0Nz8zU9wBpZ8aCM=
Content-Language: en-US
In-Reply-To: <ui9p9c$bn6v$1@raubtier-asyl.eternal-september.org>
 by: Chris M. Thomasson - Mon, 6 Nov 2023 05:02 UTC

On 11/5/2023 8:15 PM, Bonita Montero wrote:
> Am 05.11.2023 um 21:12 schrieb Chris M. Thomasson:
>> On 11/5/2023 9:55 AM, Bonita Montero wrote:
>>> Am 05.11.2023 um 18:25 schrieb Kaz Kylheku:
>>>> On 2023-11-05, Bonita Montero <Bonita.Montero@gmail.com> wrote:
>>>>> google for ... and you'll see a lot of people telling the same
>>>>> like me.
>>>>
>>>> Bandwagon Fallacy
>>>>
>>>> https://en.wikipedia.org/wiki/Argumentum_ad_populum
>>>
>>> In most cases experts are right if they agree on a certain fact.
>>>
>>
>> Sorry buddy! A benaphore is a semaphore. You, along with the "experts"
>> that try to say that a benaphore is a mutex are 100% completely wrong.
>> Got it?
>
> If you take it that way every mutex is a binary seamphore;
> but no one refers to a mutex as a semaphore.
>

Wtf are you babbling on about!?!?!!?!?

Re: Run this under Windows and Linux

<ui9s6f$bups$5@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2461&group=comp.lang.c%2B%2B#2461

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Sun, 5 Nov 2023 21:05:19 -0800
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <ui9s6f$bups$5@dont-email.me>
References: <uhnl0h$bm9a$1@dont-email.me> <uhp2gk$jvlg$1@dont-email.me>
<uhqrnb$11io0$1@dont-email.me> <uhrprb$175ve$1@dont-email.me>
<uhtekk$1jn05$1@dont-email.me> <uhual7$1omhf$4@dont-email.me>
<uhveha$22bbn$2@dont-email.me> <20231102083305.904@kylheku.com>
<ui0gbs$29990$3@dont-email.me> <20231102085649.385@kylheku.com>
<ui0ijl$29qan$1@dont-email.me> <ui2do8$2ngpf$2@dont-email.me>
<ui2jik$2of1r$1@dont-email.me> <kA91N.279085$8fO.263728@fx15.iad>
<ui39gf$2s28j$2@dont-email.me> <ui3s05$2vc30$10@dont-email.me>
<ui526u$3a606$4@dont-email.me> <ui66u7$3haup$2@dont-email.me>
<ui7653$3qrgt$3@dont-email.me> <20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9p9c$bn6v$1@raubtier-asyl.eternal-september.org>
<ui9s0m$bups$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 6 Nov 2023 05:05:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f32969d4d7c755d3c610825aaa34a086";
logging-data="391996"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/mZb+kunz34oB+p7TU37RlBraiWHqlPF4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:PObB4vOjEWfwhzACzTA2dhOR5A4=
In-Reply-To: <ui9s0m$bups$3@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Mon, 6 Nov 2023 05:05 UTC

On 11/5/2023 9:02 PM, Chris M. Thomasson wrote:
> On 11/5/2023 8:15 PM, Bonita Montero wrote:
>> Am 05.11.2023 um 21:12 schrieb Chris M. Thomasson:
>>> On 11/5/2023 9:55 AM, Bonita Montero wrote:
>>>> Am 05.11.2023 um 18:25 schrieb Kaz Kylheku:
>>>>> On 2023-11-05, Bonita Montero <Bonita.Montero@gmail.com> wrote:
>>>>>> google for ... and you'll see a lot of people telling the same
>>>>>> like me.
>>>>>
>>>>> Bandwagon Fallacy
>>>>>
>>>>> https://en.wikipedia.org/wiki/Argumentum_ad_populum
>>>>
>>>> In most cases experts are right if they agree on a certain fact.
>>>>
>>>
>>> Sorry buddy! A benaphore is a semaphore. You, along with the
>>> "experts" that try to say that a benaphore is a mutex are 100%
>>> completely wrong. Got it?
>>
>> If you take it that way every mutex is a binary seamphore;
>> but no one refers to a mutex as a semaphore.
>>
>
> Wtf are you babbling on about!?!?!!?!?

A mutex is not a semaphore. A semaphore is not a mutex.

:^)

Re: Run this under Windows and Linux

<uia8ib$demb$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2463&group=comp.lang.c%2B%2B#2463

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.Montero@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Mon, 6 Nov 2023 09:36:28 +0100
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <uia8ib$demb$1@raubtier-asyl.eternal-september.org>
References: <uhnl0h$bm9a$1@dont-email.me> <uhp2gk$jvlg$1@dont-email.me>
<uhqrnb$11io0$1@dont-email.me> <uhrprb$175ve$1@dont-email.me>
<uhtekk$1jn05$1@dont-email.me> <uhual7$1omhf$4@dont-email.me>
<uhveha$22bbn$2@dont-email.me> <20231102083305.904@kylheku.com>
<ui0gbs$29990$3@dont-email.me> <20231102085649.385@kylheku.com>
<ui0ijl$29qan$1@dont-email.me> <ui2do8$2ngpf$2@dont-email.me>
<ui2jik$2of1r$1@dont-email.me> <kA91N.279085$8fO.263728@fx15.iad>
<ui39gf$2s28j$2@dont-email.me> <ui3s05$2vc30$10@dont-email.me>
<ui526u$3a606$4@dont-email.me> <ui66u7$3haup$2@dont-email.me>
<ui7653$3qrgt$3@dont-email.me> <20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9nfn$bgou$1@raubtier-asyl.eternal-september.org>
<20231105200241.0@kylheku.com> <ui9rsv$bups$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 6 Nov 2023 08:36:27 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="318b8db1129a3b72186b4c7679f8a97a";
logging-data="441035"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+FZ/8kMeFG1P0tJt6V4u/QoWYZSiiHha4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:EGytJRHe0WUz5SHyPex+73G9I1M=
In-Reply-To: <ui9rsv$bups$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Mon, 6 Nov 2023 08:36 UTC

Am 06.11.2023 um 06:00 schrieb Chris M. Thomasson:

> void producer(double state) {
>     uint32_t ver = XADD(&head, 1);
>     cell& c = cells[ver & (N - 1)];
>     while (LOAD(&c.ver) != ver) backoff();
>     c.state = state;
>     STORE(&c.ver, ver + 1);
> }
>
> double consumer() {
>     uint32_t ver = XADD(&tail, 1);
>     cell& c = cells[ver & (N - 1)];
>     while (LOAD(&c.ver) != ver + 1) backoff();
>     double state = c.state;
>     STORE(&c.ver, ver + N);
>     return state;
> }

Lock-free queues are more complex and even if they're implemented
correctly like with boost they suck because they're polled. They
for sure don't make it into the standard.

Re: Run this under Windows and Linux

<uia8ku$demb$2@raubtier-asyl.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2464&group=comp.lang.c%2B%2B#2464

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.Montero@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Mon, 6 Nov 2023 09:37:51 +0100
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <uia8ku$demb$2@raubtier-asyl.eternal-september.org>
References: <uhnl0h$bm9a$1@dont-email.me> <uhp2gk$jvlg$1@dont-email.me>
<uhqrnb$11io0$1@dont-email.me> <uhrprb$175ve$1@dont-email.me>
<uhtekk$1jn05$1@dont-email.me> <uhual7$1omhf$4@dont-email.me>
<uhveha$22bbn$2@dont-email.me> <20231102083305.904@kylheku.com>
<ui0gbs$29990$3@dont-email.me> <20231102085649.385@kylheku.com>
<ui0ijl$29qan$1@dont-email.me> <ui2do8$2ngpf$2@dont-email.me>
<ui2jik$2of1r$1@dont-email.me> <kA91N.279085$8fO.263728@fx15.iad>
<ui39gf$2s28j$2@dont-email.me> <ui3s05$2vc30$10@dont-email.me>
<ui526u$3a606$4@dont-email.me> <ui66u7$3haup$2@dont-email.me>
<ui7653$3qrgt$3@dont-email.me> <20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9p9c$bn6v$1@raubtier-asyl.eternal-september.org>
<ui9s0m$bups$3@dont-email.me> <ui9s6f$bups$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 6 Nov 2023 08:37:50 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="318b8db1129a3b72186b4c7679f8a97a";
logging-data="441035"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX189dLrsWu7apQQnQT9eJH23C/Qcso83fLo="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:RYLAJKUyYYly7NpVn1mtiFtMMfw=
In-Reply-To: <ui9s6f$bups$5@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Mon, 6 Nov 2023 08:37 UTC

Am 06.11.2023 um 06:05 schrieb Chris M. Thomasson:

> A mutex is not a semaphore. A semaphore is not a mutex.

A mutex which doesn't maintain the identity of the locking
thread also can be used as a semaphore.

Re: Run this under Windows and Linux

<uibh9n$jujq$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2470&group=comp.lang.c%2B%2B#2470

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Mon, 6 Nov 2023 12:11:35 -0800
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <uibh9n$jujq$1@dont-email.me>
References: <uhnl0h$bm9a$1@dont-email.me> <uhp2gk$jvlg$1@dont-email.me>
<uhqrnb$11io0$1@dont-email.me> <uhrprb$175ve$1@dont-email.me>
<uhtekk$1jn05$1@dont-email.me> <uhual7$1omhf$4@dont-email.me>
<uhveha$22bbn$2@dont-email.me> <20231102083305.904@kylheku.com>
<ui0gbs$29990$3@dont-email.me> <20231102085649.385@kylheku.com>
<ui0ijl$29qan$1@dont-email.me> <ui2do8$2ngpf$2@dont-email.me>
<ui2jik$2of1r$1@dont-email.me> <kA91N.279085$8fO.263728@fx15.iad>
<ui39gf$2s28j$2@dont-email.me> <ui3s05$2vc30$10@dont-email.me>
<ui526u$3a606$4@dont-email.me> <ui66u7$3haup$2@dont-email.me>
<ui7653$3qrgt$3@dont-email.me> <20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9nfn$bgou$1@raubtier-asyl.eternal-september.org>
<20231105200241.0@kylheku.com> <ui9rsv$bups$1@dont-email.me>
<uia8ib$demb$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 6 Nov 2023 20:11:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f32969d4d7c755d3c610825aaa34a086";
logging-data="653946"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18fn6MAzbbr7Y6fxRRgUMXotXVww4m8vF8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:GOJFzkeOLRFWllUooaHN9Gc0zRU=
Content-Language: en-US
In-Reply-To: <uia8ib$demb$1@raubtier-asyl.eternal-september.org>
 by: Chris M. Thomasson - Mon, 6 Nov 2023 20:11 UTC

On 11/6/2023 12:36 AM, Bonita Montero wrote:
> Am 06.11.2023 um 06:00 schrieb Chris M. Thomasson:
>
>> void producer(double state) {
>>      uint32_t ver = XADD(&head, 1);
>>      cell& c = cells[ver & (N - 1)];
>>      while (LOAD(&c.ver) != ver) backoff();
>>      c.state = state;
>>      STORE(&c.ver, ver + 1);
>> }
>>
>> double consumer() {
>>      uint32_t ver = XADD(&tail, 1);
>>      cell& c = cells[ver & (N - 1)];
>>      while (LOAD(&c.ver) != ver + 1) backoff();
>>      double state = c.state;
>>      STORE(&c.ver, ver + N);
>>      return state;
>> }
>
> Lock-free queues are more complex and even if they're implemented
> correctly like with boost they suck because they're polled.

What do you mean by that? Why do you _seem_ to think that a lock-free
queue cannot have slow-paths that wait in the kernel?

> They
> for sure don't make it into the standard.

I can get rid of the spin wrt the tickets using futexs. The queue logic
is what I find rather elegant here. Also, I can use a benaphore for
waiting logic. This bounded lock-free queue is pretty damn good.

Btw, there are different queues types.

multi-producer multi-consumer
single-producer multi-consumer

multi-producer single-consumer
single-producer single-consumer

All of them have their trade offs, and they have radically different
algorithms to implement them efficiently.

Re: Run this under Windows and Linux

<uibhcv$jujq$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2471&group=comp.lang.c%2B%2B#2471

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Mon, 6 Nov 2023 12:13:20 -0800
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <uibhcv$jujq$2@dont-email.me>
References: <uhnl0h$bm9a$1@dont-email.me> <uhp2gk$jvlg$1@dont-email.me>
<uhqrnb$11io0$1@dont-email.me> <uhrprb$175ve$1@dont-email.me>
<uhtekk$1jn05$1@dont-email.me> <uhual7$1omhf$4@dont-email.me>
<uhveha$22bbn$2@dont-email.me> <20231102083305.904@kylheku.com>
<ui0gbs$29990$3@dont-email.me> <20231102085649.385@kylheku.com>
<ui0ijl$29qan$1@dont-email.me> <ui2do8$2ngpf$2@dont-email.me>
<ui2jik$2of1r$1@dont-email.me> <kA91N.279085$8fO.263728@fx15.iad>
<ui39gf$2s28j$2@dont-email.me> <ui3s05$2vc30$10@dont-email.me>
<ui526u$3a606$4@dont-email.me> <ui66u7$3haup$2@dont-email.me>
<ui7653$3qrgt$3@dont-email.me> <20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9p9c$bn6v$1@raubtier-asyl.eternal-september.org>
<ui9s0m$bups$3@dont-email.me> <ui9s6f$bups$5@dont-email.me>
<uia8ku$demb$2@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 6 Nov 2023 20:13:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f32969d4d7c755d3c610825aaa34a086";
logging-data="653946"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Ak3BMhAn419r5mQgk3hnyN4ILvfSaYcA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:6rw8t1QpkAYiNdZCQC/V7H865Cc=
Content-Language: en-US
In-Reply-To: <uia8ku$demb$2@raubtier-asyl.eternal-september.org>
 by: Chris M. Thomasson - Mon, 6 Nov 2023 20:13 UTC

On 11/6/2023 12:37 AM, Bonita Montero wrote:
> Am 06.11.2023 um 06:05 schrieb Chris M. Thomasson:
>
>> A mutex is not a semaphore. A semaphore is not a mutex.
>
> A mutex which doesn't maintain the identity of the locking
> thread also can be used as a semaphore.
>
>

Barf! A mutex is not a semaphore. However, you can implement a semaphore
using a mutex and condition variables.

Re: Run this under Windows and Linux

<uibhe4$jujq$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2472&group=comp.lang.c%2B%2B#2472

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Mon, 6 Nov 2023 12:13:57 -0800
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <uibhe4$jujq$3@dont-email.me>
References: <uhnl0h$bm9a$1@dont-email.me> <uhp2gk$jvlg$1@dont-email.me>
<uhqrnb$11io0$1@dont-email.me> <uhrprb$175ve$1@dont-email.me>
<uhtekk$1jn05$1@dont-email.me> <uhual7$1omhf$4@dont-email.me>
<uhveha$22bbn$2@dont-email.me> <20231102083305.904@kylheku.com>
<ui0gbs$29990$3@dont-email.me> <20231102085649.385@kylheku.com>
<ui0ijl$29qan$1@dont-email.me> <ui2do8$2ngpf$2@dont-email.me>
<ui2jik$2of1r$1@dont-email.me> <kA91N.279085$8fO.263728@fx15.iad>
<ui39gf$2s28j$2@dont-email.me> <ui3s05$2vc30$10@dont-email.me>
<ui526u$3a606$4@dont-email.me> <ui66u7$3haup$2@dont-email.me>
<ui7653$3qrgt$3@dont-email.me> <20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<20231105120232.214@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 6 Nov 2023 20:13:56 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f32969d4d7c755d3c610825aaa34a086";
logging-data="653946"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX181NB9uSvsUhz+gXqCSE43cTIvg2n8GoXo="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:/fdlgb4LUDs5C7YjC9LrA/Kvr40=
Content-Language: en-US
In-Reply-To: <20231105120232.214@kylheku.com>
 by: Chris M. Thomasson - Mon, 6 Nov 2023 20:13 UTC

On 11/5/2023 12:53 PM, Kaz Kylheku wrote:
> On 2023-11-05, Bonita Montero <Bonita.Montero@gmail.com> wrote:
>> Am 05.11.2023 um 18:25 schrieb Kaz Kylheku:
>>> On 2023-11-05, Bonita Montero <Bonita.Montero@gmail.com> wrote:
>>>> google for ... and you'll see a lot of people telling the same
>>>> like me.
>>>
>>> Bandwagon Fallacy
>>>
>>> https://en.wikipedia.org/wiki/Argumentum_ad_populum
>>
>> In most cases experts are right if they agree on a certain fact.
>
> Firstly, "I googled this up" to "experts" is a huge leap.
>
> Secondly, when have you ever recognized or acknowledged expertise?
>

Bonita is the expert? Wow... ;^o

Re: Run this under Windows and Linux

<uibqnh$lkgq$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2474&group=comp.lang.c%2B%2B#2474

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.Montero@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Mon, 6 Nov 2023 23:52:34 +0100
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <uibqnh$lkgq$1@raubtier-asyl.eternal-september.org>
References: <uhnl0h$bm9a$1@dont-email.me> <uhp2gk$jvlg$1@dont-email.me>
<uhqrnb$11io0$1@dont-email.me> <uhrprb$175ve$1@dont-email.me>
<uhtekk$1jn05$1@dont-email.me> <uhual7$1omhf$4@dont-email.me>
<uhveha$22bbn$2@dont-email.me> <20231102083305.904@kylheku.com>
<ui0gbs$29990$3@dont-email.me> <20231102085649.385@kylheku.com>
<ui0ijl$29qan$1@dont-email.me> <ui2do8$2ngpf$2@dont-email.me>
<ui2jik$2of1r$1@dont-email.me> <kA91N.279085$8fO.263728@fx15.iad>
<ui39gf$2s28j$2@dont-email.me> <ui3s05$2vc30$10@dont-email.me>
<ui526u$3a606$4@dont-email.me> <ui66u7$3haup$2@dont-email.me>
<ui7653$3qrgt$3@dont-email.me> <20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9nfn$bgou$1@raubtier-asyl.eternal-september.org>
<20231105200241.0@kylheku.com> <ui9rsv$bups$1@dont-email.me>
<uia8ib$demb$1@raubtier-asyl.eternal-september.org>
<uibh9n$jujq$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 6 Nov 2023 22:52:34 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="318b8db1129a3b72186b4c7679f8a97a";
logging-data="709146"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ATOrwd04J6UdWcl6hlMbEH6fpVGSj8/k="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:s+9NjXoyCdA1im1aPprRxDZorvk=
In-Reply-To: <uibh9n$jujq$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Mon, 6 Nov 2023 22:52 UTC

Am 06.11.2023 um 21:11 schrieb Chris M. Thomasson:

> What do you mean by that? Why do you _seem_ to think that a lock-free
> queue cannot have slow-paths that wait in the kernel?

If it is lock-free there's no lock-free any more.

Re: Run this under Windows and Linux

<uibqor$lkgq$2@raubtier-asyl.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2475&group=comp.lang.c%2B%2B#2475

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.Montero@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Mon, 6 Nov 2023 23:53:15 +0100
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <uibqor$lkgq$2@raubtier-asyl.eternal-september.org>
References: <uhnl0h$bm9a$1@dont-email.me> <uhp2gk$jvlg$1@dont-email.me>
<uhqrnb$11io0$1@dont-email.me> <uhrprb$175ve$1@dont-email.me>
<uhtekk$1jn05$1@dont-email.me> <uhual7$1omhf$4@dont-email.me>
<uhveha$22bbn$2@dont-email.me> <20231102083305.904@kylheku.com>
<ui0gbs$29990$3@dont-email.me> <20231102085649.385@kylheku.com>
<ui0ijl$29qan$1@dont-email.me> <ui2do8$2ngpf$2@dont-email.me>
<ui2jik$2of1r$1@dont-email.me> <kA91N.279085$8fO.263728@fx15.iad>
<ui39gf$2s28j$2@dont-email.me> <ui3s05$2vc30$10@dont-email.me>
<ui526u$3a606$4@dont-email.me> <ui66u7$3haup$2@dont-email.me>
<ui7653$3qrgt$3@dont-email.me> <20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9p9c$bn6v$1@raubtier-asyl.eternal-september.org>
<ui9s0m$bups$3@dont-email.me> <ui9s6f$bups$5@dont-email.me>
<uia8ku$demb$2@raubtier-asyl.eternal-september.org>
<uibhcv$jujq$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 6 Nov 2023 22:53:15 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="318b8db1129a3b72186b4c7679f8a97a";
logging-data="709146"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+rEwaKWJ8jJSuuHIG4alwtw6Sfe0VoD2I="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:S2TZllPHr/oFJM0dI5jt0u5sVps=
In-Reply-To: <uibhcv$jujq$2@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Mon, 6 Nov 2023 22:53 UTC

Am 06.11.2023 um 21:13 schrieb Chris M. Thomasson:

> Barf! A mutex is not a semaphore. ...

A mutex which doesn't maintain the caller's identity is a semaphore.

Re: Run this under Windows and Linux

<20231106145534.670@kylheku.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2476&group=comp.lang.c%2B%2B#2476

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!usenet.network!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-4973@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Mon, 6 Nov 2023 23:00:13 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <20231106145534.670@kylheku.com>
References: <uhnl0h$bm9a$1@dont-email.me> <uhp2gk$jvlg$1@dont-email.me>
<uhqrnb$11io0$1@dont-email.me> <uhrprb$175ve$1@dont-email.me>
<uhtekk$1jn05$1@dont-email.me> <uhual7$1omhf$4@dont-email.me>
<uhveha$22bbn$2@dont-email.me> <20231102083305.904@kylheku.com>
<ui0gbs$29990$3@dont-email.me> <20231102085649.385@kylheku.com>
<ui0ijl$29qan$1@dont-email.me> <ui2do8$2ngpf$2@dont-email.me>
<ui2jik$2of1r$1@dont-email.me> <kA91N.279085$8fO.263728@fx15.iad>
<ui39gf$2s28j$2@dont-email.me> <ui3s05$2vc30$10@dont-email.me>
<ui526u$3a606$4@dont-email.me> <ui66u7$3haup$2@dont-email.me>
<ui7653$3qrgt$3@dont-email.me> <20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9p9c$bn6v$1@raubtier-asyl.eternal-september.org>
<ui9s0m$bups$3@dont-email.me> <ui9s6f$bups$5@dont-email.me>
<uia8ku$demb$2@raubtier-asyl.eternal-september.org>
<uibhcv$jujq$2@dont-email.me>
<uibqor$lkgq$2@raubtier-asyl.eternal-september.org>
Injection-Date: Mon, 6 Nov 2023 23:00:13 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ae97bfd932834673b179a519cc953896";
logging-data="709868"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19H5OpcDA9Xaq1Xd9DsQaij1XdPDe9bKUM="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:qdewRclWstsXSDNXY/AGwq6PjPM=
 by: Kaz Kylheku - Mon, 6 Nov 2023 23:00 UTC

On 2023-11-06, Bonita Montero <Bonita.Montero@gmail.com> wrote:
> Am 06.11.2023 um 21:13 schrieb Chris M. Thomasson:
>
>> Barf! A mutex is not a semaphore. ...
>
> A mutex which doesn't maintain the caller's identity is a semaphore.

We cannot jump to that conclusion.

To use a mutex a a semaphore, we map the unlock operation to signal
and lock to wait.

It must be possible to signal multiple times.

If the mutex object rejects the unlock operation if it is already
in an unlocked state (for instance, by terminating the process with an
assertion) then it cannot function as a semaphore.

I suggest you abandon this fruitless exercise and let semaphores
be semaphores and mutexes be mutexes.

They are different things and we have different words for them,
which is useful; don't try to wreck it.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
NOTE: If you use Google Groups, I don't see you, unless you're whitelisted.

Re: Run this under Windows and Linux

<uicers$s4b4$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2477&group=comp.lang.c%2B%2B#2477

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.Montero@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Tue, 7 Nov 2023 05:36:13 +0100
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <uicers$s4b4$1@raubtier-asyl.eternal-september.org>
References: <uhnl0h$bm9a$1@dont-email.me> <uhqrnb$11io0$1@dont-email.me>
<uhrprb$175ve$1@dont-email.me> <uhtekk$1jn05$1@dont-email.me>
<uhual7$1omhf$4@dont-email.me> <uhveha$22bbn$2@dont-email.me>
<20231102083305.904@kylheku.com> <ui0gbs$29990$3@dont-email.me>
<20231102085649.385@kylheku.com> <ui0ijl$29qan$1@dont-email.me>
<ui2do8$2ngpf$2@dont-email.me> <ui2jik$2of1r$1@dont-email.me>
<kA91N.279085$8fO.263728@fx15.iad> <ui39gf$2s28j$2@dont-email.me>
<ui3s05$2vc30$10@dont-email.me> <ui526u$3a606$4@dont-email.me>
<ui66u7$3haup$2@dont-email.me> <ui7653$3qrgt$3@dont-email.me>
<20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9p9c$bn6v$1@raubtier-asyl.eternal-september.org>
<ui9s0m$bups$3@dont-email.me> <ui9s6f$bups$5@dont-email.me>
<uia8ku$demb$2@raubtier-asyl.eternal-september.org>
<uibhcv$jujq$2@dont-email.me>
<uibqor$lkgq$2@raubtier-asyl.eternal-september.org>
<20231106145534.670@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 7 Nov 2023 04:36:12 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="cc9a5f3f3818b7d98cf21692c5384b4b";
logging-data="921956"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18OzrLCtRpUETkwkPtIlNWsUvPwqxQWA8g="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:m7bqPn5ZAn1RadU+gGXknvuG4sM=
Content-Language: de-DE
In-Reply-To: <20231106145534.670@kylheku.com>
 by: Bonita Montero - Tue, 7 Nov 2023 04:36 UTC

Am 07.11.2023 um 00:00 schrieb Kaz Kylheku:

> To use a mutex a a semaphore, we map the unlock operation to signal
> and lock to wait.

If you have a mutex that doesn't memorize who's the locking thread
a lock() is an acquire() and an unlock() is a release().

Re: Run this under Windows and Linux

<20231106212621.923@kylheku.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2478&group=comp.lang.c%2B%2B#2478

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-4973@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Tue, 7 Nov 2023 05:29:16 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <20231106212621.923@kylheku.com>
References: <uhnl0h$bm9a$1@dont-email.me> <uhrprb$175ve$1@dont-email.me>
<uhtekk$1jn05$1@dont-email.me> <uhual7$1omhf$4@dont-email.me>
<uhveha$22bbn$2@dont-email.me> <20231102083305.904@kylheku.com>
<ui0gbs$29990$3@dont-email.me> <20231102085649.385@kylheku.com>
<ui0ijl$29qan$1@dont-email.me> <ui2do8$2ngpf$2@dont-email.me>
<ui2jik$2of1r$1@dont-email.me> <kA91N.279085$8fO.263728@fx15.iad>
<ui39gf$2s28j$2@dont-email.me> <ui3s05$2vc30$10@dont-email.me>
<ui526u$3a606$4@dont-email.me> <ui66u7$3haup$2@dont-email.me>
<ui7653$3qrgt$3@dont-email.me> <20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9p9c$bn6v$1@raubtier-asyl.eternal-september.org>
<ui9s0m$bups$3@dont-email.me> <ui9s6f$bups$5@dont-email.me>
<uia8ku$demb$2@raubtier-asyl.eternal-september.org>
<uibhcv$jujq$2@dont-email.me>
<uibqor$lkgq$2@raubtier-asyl.eternal-september.org>
<20231106145534.670@kylheku.com>
<uicers$s4b4$1@raubtier-asyl.eternal-september.org>
Injection-Date: Tue, 7 Nov 2023 05:29:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ae97bfd932834673b179a519cc953896";
logging-data="934280"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+YpBYUOrsvBDvAhzrfWPmVZU0ms+Q2Cfc="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:QNBNzxVlVCZ25S96NxjxGK5IdxM=
 by: Kaz Kylheku - Tue, 7 Nov 2023 05:29 UTC

On 2023-11-07, Bonita Montero <Bonita.Montero@gmail.com> wrote:
> Am 07.11.2023 um 00:00 schrieb Kaz Kylheku:
>
>> To use a mutex a a semaphore, we map the unlock operation to signal
>> and lock to wait.
>
> If you have a mutex that doesn't memorize who's the locking thread
> a lock() is an acquire() and an unlock() is a release().

That does not follow. Sure; not memorizing the locking thread
does remove one roadblock.

Not having an owner appears to be is a necessary condition.

You're not distinguishing between necessary and sufficient conditions.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
NOTE: If you use Google Groups, I don't see you, unless you're whitelisted.

Re: Run this under Windows and Linux

<uict2p$u572$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2480&group=comp.lang.c%2B%2B#2480

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.Montero@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Tue, 7 Nov 2023 09:38:50 +0100
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <uict2p$u572$1@raubtier-asyl.eternal-september.org>
References: <uhnl0h$bm9a$1@dont-email.me> <uhtekk$1jn05$1@dont-email.me>
<uhual7$1omhf$4@dont-email.me> <uhveha$22bbn$2@dont-email.me>
<20231102083305.904@kylheku.com> <ui0gbs$29990$3@dont-email.me>
<20231102085649.385@kylheku.com> <ui0ijl$29qan$1@dont-email.me>
<ui2do8$2ngpf$2@dont-email.me> <ui2jik$2of1r$1@dont-email.me>
<kA91N.279085$8fO.263728@fx15.iad> <ui39gf$2s28j$2@dont-email.me>
<ui3s05$2vc30$10@dont-email.me> <ui526u$3a606$4@dont-email.me>
<ui66u7$3haup$2@dont-email.me> <ui7653$3qrgt$3@dont-email.me>
<20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9p9c$bn6v$1@raubtier-asyl.eternal-september.org>
<ui9s0m$bups$3@dont-email.me> <ui9s6f$bups$5@dont-email.me>
<uia8ku$demb$2@raubtier-asyl.eternal-september.org>
<uibhcv$jujq$2@dont-email.me>
<uibqor$lkgq$2@raubtier-asyl.eternal-september.org>
<20231106145534.670@kylheku.com>
<uicers$s4b4$1@raubtier-asyl.eternal-september.org>
<20231106212621.923@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 7 Nov 2023 08:38:49 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="cc9a5f3f3818b7d98cf21692c5384b4b";
logging-data="988386"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FtoIRnqwMJJQT4lDJVQS8yTqyycuNA+M="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:8vQgjVenaIkmXP9xXnhekkSfZN4=
Content-Language: de-DE
In-Reply-To: <20231106212621.923@kylheku.com>
 by: Bonita Montero - Tue, 7 Nov 2023 08:38 UTC

Am 07.11.2023 um 06:29 schrieb Kaz Kylheku:

> That does not follow. Sure; not memorizing the locking thread
> does remove one roadblock.
> Not having an owner appears to be is a necessary condition.
> You're not distinguishing between necessary and sufficient conditions.

It the mutex doesn't track the owner, specified or not,
it's a binary semaphore.

Re: Run this under Windows and Linux

<uie4gg$15j47$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2492&group=comp.lang.c%2B%2B#2492

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Tue, 7 Nov 2023 11:51:45 -0800
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <uie4gg$15j47$1@dont-email.me>
References: <uhnl0h$bm9a$1@dont-email.me> <uhp2gk$jvlg$1@dont-email.me>
<uhqrnb$11io0$1@dont-email.me> <uhrprb$175ve$1@dont-email.me>
<uhtekk$1jn05$1@dont-email.me> <uhual7$1omhf$4@dont-email.me>
<uhveha$22bbn$2@dont-email.me> <20231102083305.904@kylheku.com>
<ui0gbs$29990$3@dont-email.me> <20231102085649.385@kylheku.com>
<ui0ijl$29qan$1@dont-email.me> <ui2do8$2ngpf$2@dont-email.me>
<ui2jik$2of1r$1@dont-email.me> <kA91N.279085$8fO.263728@fx15.iad>
<ui39gf$2s28j$2@dont-email.me> <ui3s05$2vc30$10@dont-email.me>
<ui526u$3a606$4@dont-email.me> <ui66u7$3haup$2@dont-email.me>
<ui7653$3qrgt$3@dont-email.me> <20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9nfn$bgou$1@raubtier-asyl.eternal-september.org>
<20231105200241.0@kylheku.com> <ui9rsv$bups$1@dont-email.me>
<uia8ib$demb$1@raubtier-asyl.eternal-september.org>
<uibh9n$jujq$1@dont-email.me>
<uibqnh$lkgq$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 7 Nov 2023 19:51:44 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d7534cbeaf8beb68b02e790c34f99dc0";
logging-data="1232007"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+dEiEyneNT4zYs74+9OThTg6viM8eelp4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:esu+A1X8d6xXpujWAv7wzONVcpI=
In-Reply-To: <uibqnh$lkgq$1@raubtier-asyl.eternal-september.org>
Content-Language: en-US
 by: Chris M. Thomasson - Tue, 7 Nov 2023 19:51 UTC

On 11/6/2023 2:52 PM, Bonita Montero wrote:
> Am 06.11.2023 um 21:11 schrieb Chris M. Thomasson:
>
>> What do you mean by that? Why do you _seem_ to think that a lock-free
>> queue cannot have slow-paths that wait in the kernel?
>
> If it is lock-free there's no lock-free any more.
>
>

It is basically morphing any lock-free algorithm into something that has
fast-paths that avoid the kernel, and slow paths the make use of the
kernel. Imho, it's interesting to do.

Re: Run this under Windows and Linux

<uie4j9$15j47$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2493&group=comp.lang.c%2B%2B#2493

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Tue, 7 Nov 2023 11:53:13 -0800
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <uie4j9$15j47$2@dont-email.me>
References: <uhnl0h$bm9a$1@dont-email.me> <uhveha$22bbn$2@dont-email.me>
<20231102083305.904@kylheku.com> <ui0gbs$29990$3@dont-email.me>
<20231102085649.385@kylheku.com> <ui0ijl$29qan$1@dont-email.me>
<ui2do8$2ngpf$2@dont-email.me> <ui2jik$2of1r$1@dont-email.me>
<kA91N.279085$8fO.263728@fx15.iad> <ui39gf$2s28j$2@dont-email.me>
<ui3s05$2vc30$10@dont-email.me> <ui526u$3a606$4@dont-email.me>
<ui66u7$3haup$2@dont-email.me> <ui7653$3qrgt$3@dont-email.me>
<20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9p9c$bn6v$1@raubtier-asyl.eternal-september.org>
<ui9s0m$bups$3@dont-email.me> <ui9s6f$bups$5@dont-email.me>
<uia8ku$demb$2@raubtier-asyl.eternal-september.org>
<uibhcv$jujq$2@dont-email.me>
<uibqor$lkgq$2@raubtier-asyl.eternal-september.org>
<20231106145534.670@kylheku.com>
<uicers$s4b4$1@raubtier-asyl.eternal-september.org>
<20231106212621.923@kylheku.com>
<uict2p$u572$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 7 Nov 2023 19:53:13 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d7534cbeaf8beb68b02e790c34f99dc0";
logging-data="1232007"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19HaNBizwbrra2jpYIdXtZNWr/+tG9I/kE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:uwBMqQSLNHLo2vc7Hxul0DpuPWg=
Content-Language: en-US
In-Reply-To: <uict2p$u572$1@raubtier-asyl.eternal-september.org>
 by: Chris M. Thomasson - Tue, 7 Nov 2023 19:53 UTC

On 11/7/2023 12:38 AM, Bonita Montero wrote:
> Am 07.11.2023 um 06:29 schrieb Kaz Kylheku:
>
>> That does not follow. Sure; not memorizing the locking thread
>> does remove one roadblock.
>> Not having an owner appears to be is a necessary condition.
>> You're not distinguishing between necessary and sufficient conditions.
>
> It the mutex doesn't track the owner, specified or not,
> it's a binary semaphore.

Still wrong.

Re: Run this under Windows and Linux

<uihnek$21rab$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2513&group=comp.lang.c%2B%2B#2513

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!usenet.network!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Wed, 8 Nov 2023 20:33:24 -0800
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <uihnek$21rab$1@dont-email.me>
References: <uhnl0h$bm9a$1@dont-email.me> <uhp2gk$jvlg$1@dont-email.me>
<uhqrnb$11io0$1@dont-email.me> <uhrprb$175ve$1@dont-email.me>
<uhtekk$1jn05$1@dont-email.me> <uhual7$1omhf$4@dont-email.me>
<uhveha$22bbn$2@dont-email.me> <ROO0N.36030$AvZ9.22601@fx35.iad>
<ui0fi4$293il$1@dont-email.me> <ui0vru$2cie9$1@dont-email.me>
<ui2djl$2ngpf$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 9 Nov 2023 04:33:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c15d53f2796d981aaf0ad9fa13a4e8bd";
logging-data="2157899"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/jtEgP5BuJIR4xBMT5bfe6KMB/s3PeuBU="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:6NupWod7b+fySzdPrqYNyGaUslA=
Content-Language: en-US
In-Reply-To: <ui2djl$2ngpf$1@dont-email.me>
 by: Chris M. Thomasson - Thu, 9 Nov 2023 04:33 UTC

On 11/3/2023 2:13 AM, David Brown wrote:
> On 02/11/2023 21:12, Chris M. Thomasson wrote:
>> On 11/2/2023 8:34 AM, David Brown wrote:
>>> On 02/11/2023 15:58, Scott Lurndal wrote:
>>>> Bonita Montero <Bonita.Montero@gmail.com> writes:
>>>>> Am 01.11.2023 um 20:58 schrieb Chris M. Thomasson:
>>>>>
>>>>>> The benaphore is a semaphore not a mutex! Fwiw, you can use any
>>>>>> semaphore as a binary semaphore for use as a mutex. Got it?
>>>>>
>>>>> A binary semaphore is also a mutex.
>>>>
>>>> No.  Each is distinct.
>>>>
>>>> It is correct, however, to say that both provide the same
>>>> functionality.
>>>>
>>>
>>> Both provide /similar/ functionality, but not necessarily the same.
>>> Different OS's differ in the details, but it is common for mutexes to
>>> have priority boosting if a high priority thread is waiting for a
>>> mutex currently held by a low priority thread.  Such boosting is
>>> normally not part of the functionality of a binary semaphore.  This
>>> makes them very distinctly different on such OS's - a mutex is a
>>> lock, a semaphore (binary or otherwise) is a signalling mechanism.
>>
>> Right. Basically, any thread/process can increment and/or decrement a
>> semaphore. This is different than pure mutex logic. Even if the mutex
>> uses a semaphore under the covers...
>>
>
> That's a very different issue - though of course it is an equally
> important distinction between mutexes and binary semaphores.  (And no, a
> mutex cannot be implemented using semaphores if the mutex has protection
> against priority inversion, and the semaphore does not.)
>
>>>
>>> (I don't know if Windows makes such a distinction - it's not an OS
>>> you use when thread or process priority is important.  It is
>>> certainly common, though not universal, for RTOS's.  And while I
>>> don't know the details, I'd be surprised if Linux and other *nix's
>>> didn't have such a distinction.)
>>>
>>
>

Got to get very intimate, like how a mutex is very intimate wrt a
condition variable... ;^)

Re: Run this under Windows and Linux

<uiho40$21rab$5@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2523&group=comp.lang.c%2B%2B#2523

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Wed, 8 Nov 2023 20:44:48 -0800
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <uiho40$21rab$5@dont-email.me>
References: <uhnl0h$bm9a$1@dont-email.me> <uhp2gk$jvlg$1@dont-email.me>
<uhqrnb$11io0$1@dont-email.me> <uhrprb$175ve$1@dont-email.me>
<uhtekk$1jn05$1@dont-email.me> <uhual7$1omhf$4@dont-email.me>
<uhveha$22bbn$2@dont-email.me> <20231102083305.904@kylheku.com>
<ui0gbs$29990$3@dont-email.me> <20231102085649.385@kylheku.com>
<ui0ijl$29qan$1@dont-email.me> <ui2do8$2ngpf$2@dont-email.me>
<ui2jik$2of1r$1@dont-email.me> <kA91N.279085$8fO.263728@fx15.iad>
<ui39gf$2s28j$2@dont-email.me> <ui3s05$2vc30$10@dont-email.me>
<ui526u$3a606$4@dont-email.me> <ui66u7$3haup$2@dont-email.me>
<ui7653$3qrgt$3@dont-email.me> <20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9nfn$bgou$1@raubtier-asyl.eternal-september.org>
<ui9ov4$bkh8$1@dont-email.me>
<ui9pb2$bn6v$2@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 9 Nov 2023 04:44:48 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c15d53f2796d981aaf0ad9fa13a4e8bd";
logging-data="2157899"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Ae1Wbf+Xb0iCbBX9S7yTBHLcjCjqqoBw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:wMpahms3PuWWeAxx39JKQ2BF+qU=
In-Reply-To: <ui9pb2$bn6v$2@raubtier-asyl.eternal-september.org>
Content-Language: en-US
 by: Chris M. Thomasson - Thu, 9 Nov 2023 04:44 UTC

On 11/5/2023 8:16 PM, Bonita Montero wrote:
> Am 06.11.2023 um 05:10 schrieb Chris M. Thomasson:
>>
>> Nope. Wow, you massively confused! A mutex does not need to use
>> semaphore logic, it can have its own fast path algorithm, XCHG for
>> instance. ...
>
> With pure userland-logic you won't have the opportunity to sleep for
> a mutex or to be awakened.

I want to say Bontia == Dr. Trolls-a-LOT?

Re: Run this under Windows and Linux

<uiho4q$21rab$6@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2524&group=comp.lang.c%2B%2B#2524

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Wed, 8 Nov 2023 20:45:13 -0800
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <uiho4q$21rab$6@dont-email.me>
References: <uhnl0h$bm9a$1@dont-email.me> <uhveha$22bbn$2@dont-email.me>
<20231102083305.904@kylheku.com> <ui0gbs$29990$3@dont-email.me>
<20231102085649.385@kylheku.com> <ui0ijl$29qan$1@dont-email.me>
<ui2do8$2ngpf$2@dont-email.me> <ui2jik$2of1r$1@dont-email.me>
<kA91N.279085$8fO.263728@fx15.iad> <ui39gf$2s28j$2@dont-email.me>
<ui3s05$2vc30$10@dont-email.me> <ui526u$3a606$4@dont-email.me>
<ui66u7$3haup$2@dont-email.me> <ui7653$3qrgt$3@dont-email.me>
<20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9p9c$bn6v$1@raubtier-asyl.eternal-september.org>
<ui9s0m$bups$3@dont-email.me> <ui9s6f$bups$5@dont-email.me>
<uia8ku$demb$2@raubtier-asyl.eternal-september.org>
<uibhcv$jujq$2@dont-email.me>
<uibqor$lkgq$2@raubtier-asyl.eternal-september.org>
<20231106145534.670@kylheku.com>
<uicers$s4b4$1@raubtier-asyl.eternal-september.org>
<20231106212621.923@kylheku.com>
<uict2p$u572$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 9 Nov 2023 04:45:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c15d53f2796d981aaf0ad9fa13a4e8bd";
logging-data="2157899"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18eAYxv4tIx/aZlYE9EwlTG0oOgUcwxx8A="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:SI0mSgy6OwO0QenJv7F9ntr3y0w=
Content-Language: en-US
In-Reply-To: <uict2p$u572$1@raubtier-asyl.eternal-september.org>
 by: Chris M. Thomasson - Thu, 9 Nov 2023 04:45 UTC

On 11/7/2023 12:38 AM, Bonita Montero wrote:
> Am 07.11.2023 um 06:29 schrieb Kaz Kylheku:
>
>> That does not follow. Sure; not memorizing the locking thread
>> does remove one roadblock.
>> Not having an owner appears to be is a necessary condition.
>> You're not distinguishing between necessary and sufficient conditions.
>
> It the mutex doesn't track the owner, specified or not,
> it's a binary semaphore.
>
>

https://youtu.be/cvg5mbM6FGs?t=161

Re: Run this under Windows and Linux

<uihocd$2211r$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2525&group=comp.lang.c%2B%2B#2525

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.Montero@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Thu, 9 Nov 2023 05:49:19 +0100
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <uihocd$2211r$1@raubtier-asyl.eternal-september.org>
References: <uhnl0h$bm9a$1@dont-email.me> <20231102083305.904@kylheku.com>
<ui0gbs$29990$3@dont-email.me> <20231102085649.385@kylheku.com>
<ui0ijl$29qan$1@dont-email.me> <ui2do8$2ngpf$2@dont-email.me>
<ui2jik$2of1r$1@dont-email.me> <kA91N.279085$8fO.263728@fx15.iad>
<ui39gf$2s28j$2@dont-email.me> <ui3s05$2vc30$10@dont-email.me>
<ui526u$3a606$4@dont-email.me> <ui66u7$3haup$2@dont-email.me>
<ui7653$3qrgt$3@dont-email.me> <20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9p9c$bn6v$1@raubtier-asyl.eternal-september.org>
<ui9s0m$bups$3@dont-email.me> <ui9s6f$bups$5@dont-email.me>
<uia8ku$demb$2@raubtier-asyl.eternal-september.org>
<uibhcv$jujq$2@dont-email.me>
<uibqor$lkgq$2@raubtier-asyl.eternal-september.org>
<20231106145534.670@kylheku.com>
<uicers$s4b4$1@raubtier-asyl.eternal-september.org>
<20231106212621.923@kylheku.com>
<uict2p$u572$1@raubtier-asyl.eternal-september.org>
<uie4j9$15j47$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 9 Nov 2023 04:49:17 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="a9604e3708dee71e445818bf67ac3a30";
logging-data="2163771"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/2YX3j9aNFFokjtoJ9Eea3Plupu+U76yw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:jSa8ZMOwOl5RjuTVNAsHnMhx3qg=
Content-Language: de-DE
In-Reply-To: <uie4j9$15j47$2@dont-email.me>
 by: Bonita Montero - Thu, 9 Nov 2023 04:49 UTC

Am 07.11.2023 um 20:53 schrieb Chris M. Thomasson:

> On 11/7/2023 12:38 AM, Bonita Montero wrote:

>> It the mutex doesn't track the owner, specified or not,
>> it's a binary semaphore.

> Still wrong.

No, absolutely true. If you have a mutex which doesn't track
the owning thread you're not mandated to release it in the
same thread.

Re: Run this under Windows and Linux

<uihoik$21rab$7@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2527&group=comp.lang.c%2B%2B#2527

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Wed, 8 Nov 2023 20:52:36 -0800
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <uihoik$21rab$7@dont-email.me>
References: <uhnl0h$bm9a$1@dont-email.me> <20231102085649.385@kylheku.com>
<ui0ijl$29qan$1@dont-email.me> <ui2do8$2ngpf$2@dont-email.me>
<ui2jik$2of1r$1@dont-email.me> <kA91N.279085$8fO.263728@fx15.iad>
<ui39gf$2s28j$2@dont-email.me> <ui3s05$2vc30$10@dont-email.me>
<ui526u$3a606$4@dont-email.me> <ui66u7$3haup$2@dont-email.me>
<ui7653$3qrgt$3@dont-email.me> <20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9p9c$bn6v$1@raubtier-asyl.eternal-september.org>
<ui9s0m$bups$3@dont-email.me> <ui9s6f$bups$5@dont-email.me>
<uia8ku$demb$2@raubtier-asyl.eternal-september.org>
<uibhcv$jujq$2@dont-email.me>
<uibqor$lkgq$2@raubtier-asyl.eternal-september.org>
<20231106145534.670@kylheku.com>
<uicers$s4b4$1@raubtier-asyl.eternal-september.org>
<20231106212621.923@kylheku.com>
<uict2p$u572$1@raubtier-asyl.eternal-september.org>
<uie4j9$15j47$2@dont-email.me>
<uihocd$2211r$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 9 Nov 2023 04:52:36 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c15d53f2796d981aaf0ad9fa13a4e8bd";
logging-data="2157899"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19b9E6BlnAmTEj76+j0ZgFNMekvTUt4XBs="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:NfHg0EkwgRaAhhMKAjDR9S+dhmU=
In-Reply-To: <uihocd$2211r$1@raubtier-asyl.eternal-september.org>
Content-Language: en-US
 by: Chris M. Thomasson - Thu, 9 Nov 2023 04:52 UTC

On 11/8/2023 8:49 PM, Bonita Montero wrote:
> Am 07.11.2023 um 20:53 schrieb Chris M. Thomasson:
>
>> On 11/7/2023 12:38 AM, Bonita Montero wrote:
>
>>> It the mutex doesn't track the owner, specified or not,
>>> it's a binary semaphore.
>
>> Still wrong.
>
> No, absolutely true. If you have a mutex which doesn't track
> the owning thread you're not mandated to release it in the
> same thread.
>

Mutex != Semaphore

Re: Run this under Windows and Linux

<uihom0$223j2$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2528&group=comp.lang.c%2B%2B#2528

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!nntp.comgw.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.Montero@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Thu, 9 Nov 2023 05:54:25 +0100
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <uihom0$223j2$1@raubtier-asyl.eternal-september.org>
References: <uhnl0h$bm9a$1@dont-email.me> <ui0ijl$29qan$1@dont-email.me>
<ui2do8$2ngpf$2@dont-email.me> <ui2jik$2of1r$1@dont-email.me>
<kA91N.279085$8fO.263728@fx15.iad> <ui39gf$2s28j$2@dont-email.me>
<ui3s05$2vc30$10@dont-email.me> <ui526u$3a606$4@dont-email.me>
<ui66u7$3haup$2@dont-email.me> <ui7653$3qrgt$3@dont-email.me>
<20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9p9c$bn6v$1@raubtier-asyl.eternal-september.org>
<ui9s0m$bups$3@dont-email.me> <ui9s6f$bups$5@dont-email.me>
<uia8ku$demb$2@raubtier-asyl.eternal-september.org>
<uibhcv$jujq$2@dont-email.me>
<uibqor$lkgq$2@raubtier-asyl.eternal-september.org>
<20231106145534.670@kylheku.com>
<uicers$s4b4$1@raubtier-asyl.eternal-september.org>
<20231106212621.923@kylheku.com>
<uict2p$u572$1@raubtier-asyl.eternal-september.org>
<uie4j9$15j47$2@dont-email.me>
<uihocd$2211r$1@raubtier-asyl.eternal-september.org>
<uihoik$21rab$7@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 9 Nov 2023 04:54:24 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="a9604e3708dee71e445818bf67ac3a30";
logging-data="2166370"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Kzgokfo/ZX9rxAKBZlTpvQukf34IeKvw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:OtjRLxP4rozvUYzipTWkWyDJM3I=
Content-Language: de-DE
In-Reply-To: <uihoik$21rab$7@dont-email.me>
 by: Bonita Montero - Thu, 9 Nov 2023 04:54 UTC

Am 09.11.2023 um 05:52 schrieb Chris M. Thomasson:

> Mutex != Semaphore

A mutex which doesn't track the owning thread is functionally
a semaphore.

Re: Run this under Windows and Linux

<uihorh$2231v$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2530&group=comp.lang.c%2B%2B#2530

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Wed, 8 Nov 2023 20:57:21 -0800
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <uihorh$2231v$1@dont-email.me>
References: <uhnl0h$bm9a$1@dont-email.me> <ui2do8$2ngpf$2@dont-email.me>
<ui2jik$2of1r$1@dont-email.me> <kA91N.279085$8fO.263728@fx15.iad>
<ui39gf$2s28j$2@dont-email.me> <ui3s05$2vc30$10@dont-email.me>
<ui526u$3a606$4@dont-email.me> <ui66u7$3haup$2@dont-email.me>
<ui7653$3qrgt$3@dont-email.me> <20231105092225.760@kylheku.com>
<ui8ktg$379h$1@raubtier-asyl.eternal-september.org>
<ui8t00$4c78$2@dont-email.me>
<ui9p9c$bn6v$1@raubtier-asyl.eternal-september.org>
<ui9s0m$bups$3@dont-email.me> <ui9s6f$bups$5@dont-email.me>
<uia8ku$demb$2@raubtier-asyl.eternal-september.org>
<uibhcv$jujq$2@dont-email.me>
<uibqor$lkgq$2@raubtier-asyl.eternal-september.org>
<20231106145534.670@kylheku.com>
<uicers$s4b4$1@raubtier-asyl.eternal-september.org>
<20231106212621.923@kylheku.com>
<uict2p$u572$1@raubtier-asyl.eternal-september.org>
<uie4j9$15j47$2@dont-email.me>
<uihocd$2211r$1@raubtier-asyl.eternal-september.org>
<uihoik$21rab$7@dont-email.me>
<uihom0$223j2$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 9 Nov 2023 04:57:22 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c15d53f2796d981aaf0ad9fa13a4e8bd";
logging-data="2165823"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/DVCM5iB7QdB+1AQdcEKBPMZlrxmJaWOA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:MOFgYLeBHzzdlTgvr4ep8hAYckE=
In-Reply-To: <uihom0$223j2$1@raubtier-asyl.eternal-september.org>
Content-Language: en-US
 by: Chris M. Thomasson - Thu, 9 Nov 2023 04:57 UTC

On 11/8/2023 8:54 PM, Bonita Montero wrote:
> Am 09.11.2023 um 05:52 schrieb Chris M. Thomasson:
>
>> Mutex != Semaphore
>
> A mutex which doesn't track the owning thread is functionally
> a semaphore.

Barf! I almost puked. Thanks, Bonita. ;^o


devel / comp.lang.c++ / Re: Run this under Windows and Linux

Pages:1234567
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor