Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

19 May, 2024: Line wrapping has been changed to be more consistent with Usenet standards.
 If you find that it is broken please let me know here rocksolid.nodes.help


devel / comp.lang.c++ / 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
Run this under Windows and Linux

<uhnl0h$bm9a$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Run this under Windows and Linux
Date: Mon, 30 Oct 2023 08:12:17 +0100
Organization: A noiseless patient Spider
Lines: 94
Message-ID: <uhnl0h$bm9a$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 30 Oct 2023 07:12:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="121f3564035e6b1da787704190fc2651";
logging-data="383274"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX182dfe5bNc2rBwUseBvGw6Mn3CUNblQPZs="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:8otkQPP1JvWw7enytCIPT/WPZSQ=
Content-Language: de-DE
 by: Bonita Montero - Mon, 30 Oct 2023 07:12 UTC

MSVC's C++20 semaphore class spins to acquire the semaphore;
g++'s / libstdc++'s doesn't spin. I wote a little test program
to rest how long it takes to flip to another thread and back
with a binary_semaphore (always a counting_semaphore<1>).
Here it is:

#if defined(_WIN32)
#include <Windows.h>
#elif defined(__unix__)
#include <sys/resource.h>
#endif
#include <iostream>
#include <thread>
#include <semaphore>
#include <atomic>
#include <utility>
#include <vector>

using namespace std;

int main()
{ binary_semaphore
semA( 1 ),
semB( 0 );
auto getTimes = []() -> pair<int64_t, int64_t>
{
#if defined(_WIN32)
FILETIME ftDummy, ftKernel, ftUser;
GetThreadTimes( GetCurrentThread(), &ftDummy, &ftDummy, &ftKernel,
&ftUser );
auto compose = []( FILETIME &ft ) { return
((uint64_t)ft.dwHighDateTime << 32 | ft.dwLowDateTime) * 100; };
return { compose( ftKernel ), compose( ftUser ) };
#elif defined(__unix__)
rusage ru;
getrusage( RUSAGE_THREAD, &ru );
auto compose = []( timeval &tv ) -> int64_t { return
(uint64_t)tv.tv_sec * 1'000'000'000u + (uint32_t)tv.tv_usec * 1'000u; };
return { compose( ru.ru_stime ), compose( ru.ru_utime ) };
#endif
};
atomic_int64_t
aFlips( 0 ),
aKernel( 0 ),
aUser( 0 );
atomic_bool stop( false );
auto thr = [&]( binary_semaphore &semMe, binary_semaphore &semYou )
{
auto tBegin = getTimes();
uint64_t f = 0;
for( ; !stop.load( memory_order_relaxed ); ++f )
semMe.acquire(),
semYou.release();
auto tEnd = getTimes();
aFlips += f;
aKernel += tEnd.first - tBegin.first;
aUser += tEnd.second + tBegin.second;
};
vector<jthread> threads;
threads.emplace_back( thr, ref( semA ), ref( semB ) );
threads.emplace_back( thr, ref( semB ), ref( semA ) );
this_thread::sleep_for( 1s );
stop = true;
threads.resize( 0 );
double
kernel = (double)aKernel,
user = (double)aUser,
total = kernel + user,
flips = (double)aFlips;
cout << user / total * 100.0 << "%" << endl;
cout << total / flips << "ns" << endl;
}

Results unter Windows 11 on a AMD Ryzen 7950X (Zen4):
100%
89.3523ns
So 100% of the CPU time is spent in user space and a flip back
and forth takes 90ns.
Results unter Ubuntu 20.04 on a AMD Threadripper 3990X (Zen2):
6.56209%
476.213ns
So under Linux most of the time is spent in kernel space and I think
about 0.5us, thats about 2000 clock cycles with full boost, isn't bad
for an explicit kernel call.
I think this userland spinning isn't really necessary because you
normally a usual mutex and a condition_variable fits for everything
you need. An explicit semaphore is rather needed if you build your
own synchronization primitves on top of the semaphore. And if you do
that you usually have your own spinning with that and you don't need
further spinning if you want go into kernel mode. But this additional
spinning actually doesn't really hurt since the kernel call itself
costs a lot more.

Re: Run this under Windows and Linux

<uhp2gk$jvlg$1@dont-email.me>

  copy mid

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

  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....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Mon, 30 Oct 2023 13:08:51 -0700
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <uhp2gk$jvlg$1@dont-email.me>
References: <uhnl0h$bm9a$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 30 Oct 2023 20:08:52 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="dfd4ea0a7bdc80cf575bc3888311ddf9";
logging-data="655024"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+i7g6kWC89MqkkXRLdeZIW2Sxj0zH/TmM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:JuDco8dI5Uk1Ob8VMDP2qx9GtuQ=
Content-Language: en-US
In-Reply-To: <uhnl0h$bm9a$1@dont-email.me>
 by: Chris M. Thomasson - Mon, 30 Oct 2023 20:08 UTC

On 10/30/2023 12:12 AM, Bonita Montero wrote:
> MSVC's C++20 semaphore class spins to acquire the semaphore;
> g++'s / libstdc++'s doesn't spin. I wote a little test program
> to rest how long it takes to flip to another thread and back
> with a binary_semaphore (always a counting_semaphore<1>).
> Here it is:
[...]

Test out the benaphore:

https://www.haiku-os.org/legacy-docs/benewsletter/Issue1-26.html#Engineering1-26

Re: Run this under Windows and Linux

<uhqrnb$11io0$1@dont-email.me>

  copy mid

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

  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: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Tue, 31 Oct 2023 13:25:17 +0100
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <uhqrnb$11io0$1@dont-email.me>
References: <uhnl0h$bm9a$1@dont-email.me> <uhp2gk$jvlg$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 31 Oct 2023 12:25:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0e7ea5192c0cb0bd4eab8b0c9ebc9486";
logging-data="1100544"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18E+Y2Sr0ug6o51tBtLi7FbecvE3KrbUU4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:C0RCF/1mEP0I6Mf2OdoBDeLyL78=
Content-Language: de-DE
In-Reply-To: <uhp2gk$jvlg$1@dont-email.me>
 by: Bonita Montero - Tue, 31 Oct 2023 12:25 UTC

Am 30.10.2023 um 21:08 schrieb Chris M. Thomasson:

> On 10/30/2023 12:12 AM, Bonita Montero wrote:

>> MSVC's C++20 semaphore class spins to acquire the semaphore;
>> g++'s / libstdc++'s doesn't spin. I wote a little test program
>> to rest how long it takes to flip to another thread and back
>> with a binary_semaphore (always a counting_semaphore<1>).
>> Here it is:
> [...]

> Test out the benaphore:
> https://www.haiku-os.org/legacy-docs/benewsletter/Issue1-26.html#Engineering1-26

I think this guy never heard of how a usual mutex works and re-invented
the wheel and called it a benaphore.

Re: Run this under Windows and Linux

<4Xa0N.265194$2fS.74888@fx16.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx16.iad.POSTED!not-for-mail
Newsgroups: comp.lang.c++
From: branimir...@icloud.com (Branimir Maksimovic)
Subject: Re: Run this under Windows and Linux
References: <uhnl0h$bm9a$1@dont-email.me> <uhp2gk$jvlg$1@dont-email.me>
<uhqrnb$11io0$1@dont-email.me>
User-Agent: slrn/1.0.3 (Darwin)
Lines: 66
Message-ID: <4Xa0N.265194$2fS.74888@fx16.iad>
X-Complaints-To: abuse@usenet-news.net
NNTP-Posting-Date: Tue, 31 Oct 2023 17:37:04 UTC
Organization: usenet-news.net
Date: Tue, 31 Oct 2023 17:37:04 GMT
X-Received-Bytes: 2164
 by: Branimir Maksimovic - Tue, 31 Oct 2023 17:37 UTC

On 2023-10-31, Bonita Montero <Bonita.Montero@gmail.com> wrote:
> Am 30.10.2023 um 21:08 schrieb Chris M. Thomasson:
>
>> On 10/30/2023 12:12 AM, Bonita Montero wrote:
>
>>> MSVC's C++20 semaphore class spins to acquire the semaphore;
>>> g++'s / libstdc++'s doesn't spin. I wote a little test program
>>> to rest how long it takes to flip to another thread and back
>>> with a binary_semaphore (always a counting_semaphore<1>).
>>> Here it is:
>> [...]
>
>> Test out the benaphore:
>> https://www.haiku-os.org/legacy-docs/benewsletter/Issue1-26.html#Engineering1-26
>
> I think this guy never heard of how a usual mutex works and re-invented
> the wheel and called it a benaphore.
>
formatt elf64

FUTEX_WAIT equ 0
FUTEX_WAKE equ 1
FUTEX_PRIVATE_FLAG equ 128

public futex_acquire
public futex_release

futex_acquire:
push rbx
push r15
; push r10
mov r15,rdi
..L0:
mov ebx,1
xor eax,eax
lock cmpxchg [r15],ebx
test eax,eax
jz .L1
mov eax, 202
mov rdi, r15
mov rsi, FUTEX_WAIT or FUTEX_PRIVATE_FLAG
mov edx, 1
xor r10,r10
syscall
jmp .L0
..L1:; pop r10
pop r15
pop rbx
ret

futex_release:
lock and dword[rdi],0
mov eax,202
; mov rdi, sema
mov rsi, FUTEX_WAKE or FUTEX_PRIVATE_FLAG
mov edx,1
syscall
ret

---------
x86 mutex on linux

--

7-77-777, Evil Sinner!
https://www.linkedin.com/in/branimir-maksimovic-6762bbaa/

Re: Run this under Windows and Linux

<uhrprb$175ve$1@dont-email.me>

  copy mid

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

  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....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Tue, 31 Oct 2023 13:59:22 -0700
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <uhrprb$175ve$1@dont-email.me>
References: <uhnl0h$bm9a$1@dont-email.me> <uhp2gk$jvlg$1@dont-email.me>
<uhqrnb$11io0$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 31 Oct 2023 20:59:23 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="79e6b99247793a94ad1533012982a485";
logging-data="1284078"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/BxU9aeQGXZC1OOp8zwNnuKff+q4/KjTY="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:fyxCwgUKD+9vRAXfTT7AvXrdHJk=
Content-Language: en-US
In-Reply-To: <uhqrnb$11io0$1@dont-email.me>
 by: Chris M. Thomasson - Tue, 31 Oct 2023 20:59 UTC

On 10/31/2023 5:25 AM, Bonita Montero wrote:
> Am 30.10.2023 um 21:08 schrieb Chris M. Thomasson:
>
>> On 10/30/2023 12:12 AM, Bonita Montero wrote:
>
>>> MSVC's C++20 semaphore class spins to acquire the semaphore;
>>> g++'s / libstdc++'s doesn't spin. I wote a little test program
>>> to rest how long it takes to flip to another thread and back
>>> with a binary_semaphore (always a counting_semaphore<1>).
>>> Here it is:
>> [...]
>
>> Test out the benaphore:
>> https://www.haiku-os.org/legacy-docs/benewsletter/Issue1-26.html#Engineering1-26
>
> I think this guy never heard of how a usual mutex works and re-invented
> the wheel and called it a benaphore.
>

Why do you say that?

Re: Run this under Windows and Linux

<uhtekk$1jn05$1@dont-email.me>

  copy mid

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

  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: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Wed, 1 Nov 2023 13:00:23 +0100
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <uhtekk$1jn05$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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 1 Nov 2023 12:00:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ade12eabac71cfe7790956d45f3d88ea";
logging-data="1694725"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19isFZnmE8/Cvaq9p+wIbKhMs3os8yqqcg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:F+mt/1dpdjqCtvSxdkI1w/jyj90=
In-Reply-To: <uhrprb$175ve$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Wed, 1 Nov 2023 12:00 UTC

Am 31.10.2023 um 21:59 schrieb Chris M. Thomasson:

> On 10/31/2023 5:25 AM, Bonita Montero wrote:

>> I think this guy never heard of how a usual mutex works
>> and re-invented the wheel and called it a benaphore.

> Why do you say that?

I guess he wouldn't have given the benaphore its name because its
the simplest form of a mutex and you can find for sure a lot of
similar implementations of that on the net.

Re: Run this under Windows and Linux

<uhtfrr$1jvsr$1@dont-email.me>

  copy mid

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

  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: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Wed, 1 Nov 2023 13:21:17 +0100
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <uhtfrr$1jvsr$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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 1 Nov 2023 12:21:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ade12eabac71cfe7790956d45f3d88ea";
logging-data="1703835"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/VKLWgOQ1BL5kNcKcSOHCnQvpQbXoJAK8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:IIablEx5bqwJACkZ81/FoCCinbA=
In-Reply-To: <uhrprb$175ve$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Wed, 1 Nov 2023 12:21 UTC

Am 31.10.2023 um 21:59 schrieb Chris M. Thomasson:

> Why do you say that?

The article you mentioned is also discussed here:
https://stackoverflow.com/questions/1635416/are-benaphores-worth-implementing-on-modern-oss
The first replier says the same I said: its a normal mutex.

Re: Run this under Windows and Linux

<uhu543$1ns97$1@dont-email.me>

  copy mid

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

  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: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Wed, 1 Nov 2023 19:24:06 +0100
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <uhu543$1ns97$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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 1 Nov 2023 18:24:03 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ade12eabac71cfe7790956d45f3d88ea";
logging-data="1831207"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+2+s7FTRio0yTKuo1jtkjhIqqCc0BaT58="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:mvponZU8U7V7GOEj6eLSrKC/pWY=
Content-Language: de-DE
In-Reply-To: <uhtekk$1jn05$1@dont-email.me>
 by: Bonita Montero - Wed, 1 Nov 2023 18:24 UTC

Am 01.11.2023 um 13:00 schrieb Bonita Montero:

> I guess he wouldn't have given the benaphore its name because its
> the simplest form of a mutex and you can find for sure a lot of
> similar implementations of that on the net.

I found that the name benaphore was given 1996. Maybe this was the
first time this idea was published. But this idea is that obvious
that I had it myself that I think there were several people which
also had this idea before 1996. A hint on how soon this has been
invented may be the introduction of the LOCK XADD instruction which
makes this kind of mutex implementable more efficient than with
LOCK CMPXCHG because this operation never fails.

Re: Run this under Windows and Linux

<uhu5c9$1nv1h$1@dont-email.me>

  copy mid

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

  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: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Wed, 1 Nov 2023 19:28:28 +0100
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <uhu5c9$1nv1h$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> <uhu543$1ns97$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 1 Nov 2023 18:28:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ade12eabac71cfe7790956d45f3d88ea";
logging-data="1834033"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19njguWo0An/K4hDKMrSqvy/cTvI1Be6u8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:d86CNXrhtnhaPPDDtwsZsgqF45Q=
In-Reply-To: <uhu543$1ns97$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Wed, 1 Nov 2023 18:28 UTC

Am 01.11.2023 um 19:24 schrieb Bonita Montero:

> I found that the name benaphore was given 1996. Maybe this was the
> first time this idea was published. But this idea is that obvious
> that I had it myself that I think there were several people which
> also had this idea before 1996. A hint on how soon this has been
> invented may be the introduction of the LOCK XADD instruction which
> makes this kind of mutex implementable more efficient than with
> LOCK CMPXCHG because this operation never fails.

I found that LOCK XADD was introduced 1990 with the i486.
I think the designers of this instruction had this specific
kind of mutex in mind.

Re: Run this under Windows and Linux

<qjx0N.50766$f719.9718@fx42.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx42.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Run this under Windows and Linux
Newsgroups: comp.lang.c++
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> <uhu543$1ns97$1@dont-email.me> <uhu5c9$1nv1h$1@dont-email.me>
Lines: 29
Message-ID: <qjx0N.50766$f719.9718@fx42.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 01 Nov 2023 19:04:54 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 01 Nov 2023 19:04:54 GMT
X-Received-Bytes: 2026
 by: Scott Lurndal - Wed, 1 Nov 2023 19:04 UTC

Bonita Montero <Bonita.Montero@gmail.com> writes:
>Am 01.11.2023 um 19:24 schrieb Bonita Montero:
>
>> I found that the name benaphore was given 1996. Maybe this was the
>> first time this idea was published. But this idea is that obvious
>> that I had it myself that I think there were several people which
>> also had this idea before 1996. A hint on how soon this has been
>> invented may be the introduction of the LOCK XADD instruction which
>> makes this kind of mutex implementable more efficient than with
>> LOCK CMPXCHG because this operation never fails.
>
>I found that LOCK XADD was introduced 1990 with the i486.

Multiprocessor computer systems existed long before the i486;
nothing the 486 did was new.

Burroughs mainframes had mutexes and condition variables in the
1970s (during which time Dijkstra was a Burroughs fellow).

A great deal of research on synchronization was done in the
60s and 1970s, including work by Lamport, Hoare, Dijkstra
and others.

I always found Hoare's Co-operating Sequential Processes interesting,
here's his book (not pirated):

http://www.usingcsp.com/

The book is based on his 197x paper we studied in school.

Re: Run this under Windows and Linux

<uhu7t2$1oeda$1@dont-email.me>

  copy mid

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

  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: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Wed, 1 Nov 2023 20:11:32 +0100
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <uhu7t2$1oeda$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> <uhu543$1ns97$1@dont-email.me>
<uhu5c9$1nv1h$1@dont-email.me> <qjx0N.50766$f719.9718@fx42.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 1 Nov 2023 19:11:30 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ade12eabac71cfe7790956d45f3d88ea";
logging-data="1849770"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/vMlCKda48Qc9fUNDd1e4EJaxKUVHPJ9Y="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Pb2XBshxsB5dCjMuCfwxZAHwOJ8=
In-Reply-To: <qjx0N.50766$f719.9718@fx42.iad>
Content-Language: de-DE
 by: Bonita Montero - Wed, 1 Nov 2023 19:11 UTC

Am 01.11.2023 um 20:04 schrieb Scott Lurndal:

> Bonita Montero <Bonita.Montero@gmail.com> writes:

>> I found that LOCK XADD was introduced 1990 with the i486.

> Multiprocessor computer systems existed long before the i486;
> nothing the 486 did was new.

I treaded the indroduction of LOCK XADD just as a hint that sth.
like this benaphore was thoguht before 1996.

Re: Run this under Windows and Linux

<uhual7$1omhf$4@dont-email.me>

  copy mid

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

  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....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Wed, 1 Nov 2023 12:58:30 -0700
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <uhual7$1omhf$4@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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 1 Nov 2023 19:58:31 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d9f5ddcd76d5c404948bcd25141bfa38";
logging-data="1858095"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19E3KZ0Vq3Cph+UqNDQZPGBPBUXqIOLDXI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:CfOoT+Qf472reWeOWwkcSGKTH8Y=
Content-Language: en-US
In-Reply-To: <uhtekk$1jn05$1@dont-email.me>
 by: Chris M. Thomasson - Wed, 1 Nov 2023 19:58 UTC

On 11/1/2023 5:00 AM, Bonita Montero wrote:
> Am 31.10.2023 um 21:59 schrieb Chris M. Thomasson:
>
>> On 10/31/2023 5:25 AM, Bonita Montero wrote:
>
>>> I think this guy never heard of how a usual mutex works
>>> and re-invented the wheel and called it a benaphore.
>
>> Why do you say that?
>
> I guess he wouldn't have given the benaphore its name because its
> the simplest form of a mutex and you can find for sure a lot of
> similar implementations of that on the net.
>

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?

Re: Run this under Windows and Linux

<uhuaml$1omhf$5@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.niel.me!news.gegeweb.eu!gegeweb.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Wed, 1 Nov 2023 12:59:17 -0700
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <uhuaml$1omhf$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>
<uhtfrr$1jvsr$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 1 Nov 2023 19:59:18 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d9f5ddcd76d5c404948bcd25141bfa38";
logging-data="1858095"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX181pLYVkHTSgeTrEA3PZizplyvt2P20BCs="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:SalFRH7X0jJ+ZmMKZ/KPZnlxpP4=
In-Reply-To: <uhtfrr$1jvsr$1@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Wed, 1 Nov 2023 19:59 UTC

On 11/1/2023 5:21 AM, Bonita Montero wrote:
> Am 31.10.2023 um 21:59 schrieb Chris M. Thomasson:
>
>> Why do you say that?
>
> The article you mentioned is also discussed here:
> https://stackoverflow.com/questions/1635416/are-benaphores-worth-implementing-on-modern-oss
> The first replier says the same I said: its a normal mutex.
>

Huh? The benaphore is a semaphore! So, both of you are totally wrong
here. Think about it...

Re: Run this under Windows and Linux

<uhuaq9$1omhf$6@dont-email.me>

  copy mid

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

  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....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Wed, 1 Nov 2023 13:01:12 -0700
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <uhuaq9$1omhf$6@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> <uhu543$1ns97$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 1 Nov 2023 20:01:13 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d9f5ddcd76d5c404948bcd25141bfa38";
logging-data="1858095"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+4PlvdJUSyzf6ssxfwE7Kx4APom2+0tTA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Y7HFJuJbqeEESh8AWf8f/sPstN0=
In-Reply-To: <uhu543$1ns97$1@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Wed, 1 Nov 2023 20:01 UTC

On 11/1/2023 11:24 AM, Bonita Montero wrote:
> Am 01.11.2023 um 13:00 schrieb Bonita Montero:
>
>> I guess he wouldn't have given the benaphore its name because its
>> the simplest form of a mutex and you can find for sure a lot of
>> similar implementations of that on the net.
>
> I found that the name benaphore was given 1996. Maybe this was the
> first time this idea was published. But this idea is that obvious
> that I had it myself that I think there were several people which
> also had this idea before 1996. A hint on how soon this has been
> invented may be the introduction of the LOCK XADD instruction which
> makes this kind of mutex implementable more efficient than with
> LOCK CMPXCHG because this operation never fails.
>

Its a semaphore, not a mutex. Any semaphore can be used for a mutex, hint:

Binary Semaphore

Re: Run this under Windows and Linux

<uhuat3$1omhf$7@dont-email.me>

  copy mid

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

  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....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Wed, 1 Nov 2023 13:02:43 -0700
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <uhuat3$1omhf$7@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> <uhu543$1ns97$1@dont-email.me>
<uhu5c9$1nv1h$1@dont-email.me> <qjx0N.50766$f719.9718@fx42.iad>
<uhu7t2$1oeda$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 1 Nov 2023 20:02:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d9f5ddcd76d5c404948bcd25141bfa38";
logging-data="1858095"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SEvlHqsut9/Savp0/+UwcK3CR7/yhCyc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:QK87wy1BbK3hwLSsxrPeHlKnvZk=
Content-Language: en-US
In-Reply-To: <uhu7t2$1oeda$1@dont-email.me>
 by: Chris M. Thomasson - Wed, 1 Nov 2023 20:02 UTC

On 11/1/2023 12:11 PM, Bonita Montero wrote:
> Am 01.11.2023 um 20:04 schrieb Scott Lurndal:
>
>> Bonita Montero <Bonita.Montero@gmail.com> writes:
>
>>> I found that LOCK XADD was introduced 1990 with the i486.
>
>> Multiprocessor computer systems existed long before the i486;
>> nothing the 486 did was new.
>
> I treaded the indroduction of LOCK XADD just as a hint that sth.
> like this benaphore was thoguht before 1996.

If you can avoid using a CAS, aka CMPXCHG over on intel, then do it!
Although, wrt intel, there is a way to use CMPXCHG without looping.
Think, strong CAS vs weak CAS...

Re: Run this under Windows and Linux

<20231101134257.167@kylheku.com>

  copy mid

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

  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: 864-117-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Wed, 1 Nov 2023 20:50:07 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <20231101134257.167@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> <uhu543$1ns97$1@dont-email.me>
Injection-Date: Wed, 1 Nov 2023 20:50:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="be80218a5423c940e36ffd696f5a5a5e";
logging-data="1882810"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18vm6gxF1Q+aQagH6ErUD6vzlzaGgsZHnc="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:ZtPI5XWAWPOTqIPEK1Z9ayXH+gY=
 by: Kaz Kylheku - Wed, 1 Nov 2023 20:50 UTC

On 2023-11-01, Bonita Montero <Bonita.Montero@gmail.com> wrote:
> Am 01.11.2023 um 13:00 schrieb Bonita Montero:
>
>> I guess he wouldn't have given the benaphore its name because its
>> the simplest form of a mutex and you can find for sure a lot of
>> similar implementations of that on the net.
>
> I found that the name benaphore was given 1996. Maybe this was the
> first time this idea was published.

But back then, Ben Affleck had a hotly publicized affair with a hot
water bottle (thermophore), so that's where that's from.

--
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

<uhuehv$1pltd$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.niel.me!news.gegeweb.eu!gegeweb.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Wed, 1 Nov 2023 14:05:02 -0700
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <uhuehv$1pltd$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> <uhu543$1ns97$1@dont-email.me>
<20231101134257.167@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 1 Nov 2023 21:05:03 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d9f5ddcd76d5c404948bcd25141bfa38";
logging-data="1890221"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+d3dizoVAn/BuIVPIzi7rTB6V7o6tT/Ro="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:hRbcXUY0GtyE4Dt/KFLTDXKPIis=
Content-Language: en-US
In-Reply-To: <20231101134257.167@kylheku.com>
 by: Chris M. Thomasson - Wed, 1 Nov 2023 21:05 UTC

On 11/1/2023 1:50 PM, Kaz Kylheku wrote:
> On 2023-11-01, Bonita Montero <Bonita.Montero@gmail.com> wrote:
>> Am 01.11.2023 um 13:00 schrieb Bonita Montero:
>>
>>> I guess he wouldn't have given the benaphore its name because its
>>> the simplest form of a mutex and you can find for sure a lot of
>>> similar implementations of that on the net.
>>
>> I found that the name benaphore was given 1996. Maybe this was the
>> first time this idea was published.
>
> But back then, Ben Affleck had a hotly publicized affair with a hot
> water bottle (thermophore), so that's where that's from.
>

LOL! :^D

Re: Run this under Windows and Linux

<uhuemb$1pltd$2@dont-email.me>

  copy mid

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

  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....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Wed, 1 Nov 2023 14:07:23 -0700
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <uhuemb$1pltd$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> <uhu543$1ns97$1@dont-email.me>
<20231101134257.167@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 1 Nov 2023 21:07:23 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d9f5ddcd76d5c404948bcd25141bfa38";
logging-data="1890221"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18JZHBtxT+KKFY/YEZqL6U/+w4p6t3CIQc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:nVRtaIUL7e52zUDjfOjW5cI4OTk=
In-Reply-To: <20231101134257.167@kylheku.com>
Content-Language: en-US
 by: Chris M. Thomasson - Wed, 1 Nov 2023 21:07 UTC

On 11/1/2023 1:50 PM, Kaz Kylheku wrote:
> On 2023-11-01, Bonita Montero <Bonita.Montero@gmail.com> wrote:
>> Am 01.11.2023 um 13:00 schrieb Bonita Montero:
>>
>>> I guess he wouldn't have given the benaphore its name because its
>>> the simplest form of a mutex and you can find for sure a lot of
>>> similar implementations of that on the net.
>>
>> I found that the name benaphore was given 1996. Maybe this was the
>> first time this idea was published.
>
> But back then, Ben Affleck had a hotly publicized affair with a hot
> water bottle (thermophore), so that's where that's from.
>

Be sure to check out:

https://vorbrodt.blog/2019/02/05/fast-semaphore

;^)

Re: Run this under Windows and Linux

<uhveg6$22bbn$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.chmurka.net!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Thu, 2 Nov 2023 07:10:17 +0100
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <uhveg6$22bbn$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> <uhu543$1ns97$1@dont-email.me>
<uhuaq9$1omhf$6@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 2 Nov 2023 06:10:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a1d0bc6b346e263d9751a3023e3af7de";
logging-data="2174327"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/EziPRhML/fk9wAMJjPiRbaBdFoyssqho="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:E7RorcGjEk9i16vsYO65FG6mqd4=
In-Reply-To: <uhuaq9$1omhf$6@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Thu, 2 Nov 2023 06:10 UTC

Am 01.11.2023 um 21:01 schrieb Chris M. Thomasson:
> On 11/1/2023 11:24 AM, Bonita Montero wrote:
>> Am 01.11.2023 um 13:00 schrieb Bonita Montero:
>>
>>> I guess he wouldn't have given the benaphore its name because its
>>> the simplest form of a mutex and you can find for sure a lot of
>>> similar implementations of that on the net.
>>
>> I found that the name benaphore was given 1996. Maybe this was the
>> first time this idea was published. But this idea is that obvious
>> that I had it myself that I think there were several people which
>> also had this idea before 1996. A hint on how soon this has been
>> invented may be the introduction of the LOCK XADD instruction which
>> makes this kind of mutex implementable more efficient than with
>> LOCK CMPXCHG because this operation never fails.
>>
>
> Its a semaphore, not a mutex. Any semaphore can be used for a mutex, hint:

You can say that each binary semaphore is a mutex. And a semaphore
is usually not a compound of userland and kernel facilities, but a
pure kernel resource.

Re: Run this under Windows and Linux

<uhveha$22bbn$2@dont-email.me>

  copy mid

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

  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: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Thu, 2 Nov 2023 07:10:53 +0100
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <uhveha$22bbn$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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 2 Nov 2023 06:10:50 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a1d0bc6b346e263d9751a3023e3af7de";
logging-data="2174327"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19algwC+otN0rYDpyy4RrOpN9tCsLPZaPY="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:GCgdX+GuXrFJMAZ2UtPZeEUOGgQ=
Content-Language: de-DE
In-Reply-To: <uhual7$1omhf$4@dont-email.me>
 by: Bonita Montero - Thu, 2 Nov 2023 06:10 UTC

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.

Re: Run this under Windows and Linux

<ROO0N.36030$AvZ9.22601@fx35.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!news.neodome.net!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx35.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Run this under Windows and Linux
Newsgroups: comp.lang.c++
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>
Lines: 12
Message-ID: <ROO0N.36030$AvZ9.22601@fx35.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Thu, 02 Nov 2023 14:58:57 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Thu, 02 Nov 2023 14:58:57 GMT
X-Received-Bytes: 1222
 by: Scott Lurndal - Thu, 2 Nov 2023 14:58 UTC

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.

Re: Run this under Windows and Linux

<ui0fi4$293il$1@dont-email.me>

  copy mid

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

  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: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Thu, 2 Nov 2023 16:34:28 +0100
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <ui0fi4$293il$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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 2 Nov 2023 15:34:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="64ae81d7b681dc8e30ba879dc68ccbdd";
logging-data="2395733"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18zI0Ioy1sDVTGZAYZAu64+T3TU0zr7gcQ="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:IXcyvo9xLxwNTmNszJNOIaOMfVg=
Content-Language: en-GB
In-Reply-To: <ROO0N.36030$AvZ9.22601@fx35.iad>
 by: David Brown - Thu, 2 Nov 2023 15:34 UTC

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.

(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.)

Re: Run this under Windows and Linux

<20231102083305.904@kylheku.com>

  copy mid

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

  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-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Thu, 2 Nov 2023 15:37:29 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <20231102083305.904@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>
Injection-Date: Thu, 2 Nov 2023 15:37:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ef9318d42c2ed0d00615b31aed4999a9";
logging-data="2396497"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+GlEP8rw8WUu3FSpnM/SAGjR2djP+948s="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:eQ8+F0Dk0msjRIYUap1+3iiw/is=
 by: Kaz Kylheku - Thu, 2 Nov 2023 15:37 UTC

On 2023-11-02, Bonita Montero <Bonita.Montero@gmail.com> wrote:
> 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.

A semaphore can be used as a mutex, but it isn't one.

Firstly, it doesn't have to be binary to be used as a mutex.

A semaphore restricted to binary values can still serve as a mutex for
the reason that a mutex is never unlocked multiple times in a correct
program. So if we correctly use a semaphore as a mutex, its count should
never go over 1, and for that reason, we can get away with using
semaphore that only counts from 0 to 1.

A semaphore isn't a mutex because it doesn't incorporate the concept of
lock ownership.

The idea that a semaphore represents a locked state, which has an
associated owner, arise purely by the situational convention of how it
is applied.

A semaphore couldn't provide error checking, such as when a mutex
non-owner tries to unlock, or recursive deadlock detection.

--
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

<ui0g47$29990$1@dont-email.me>

  copy mid

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

  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: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Thu, 2 Nov 2023 16:44:09 +0100
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <ui0g47$29990$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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 2 Nov 2023 15:44:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a1d0bc6b346e263d9751a3023e3af7de";
logging-data="2401568"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18lxcPql2tFsuXEvwQp9BNgbi2zUfgZkCs="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Xctd9LxtxPJQxWzW3Bv+l4qKI1A=
Content-Language: de-DE
In-Reply-To: <ROO0N.36030$AvZ9.22601@fx35.iad>
 by: Bonita Montero - Thu, 2 Nov 2023 15:44 UTC

Am 02.11.2023 um 15:58 schrieb Scott Lurndal:

> No. Each is distinct.

You can initialize a binary semaphore with true and use it
as a mutex. And a mutex can be realized without a short path
but just with a binary semaphore in the mentioned way.

Re: Run this under Windows and Linux

<ui0g88$29990$2@dont-email.me>

  copy mid

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

  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: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Run this under Windows and Linux
Date: Thu, 2 Nov 2023 16:46:18 +0100
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <ui0g88$29990$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> <ROO0N.36030$AvZ9.22601@fx35.iad>
<ui0fi4$293il$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 2 Nov 2023 15:46:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a1d0bc6b346e263d9751a3023e3af7de";
logging-data="2401568"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xemAnyp2mBl7ayz6EX1doikpBR9hf610="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ZNwrvxMlNafTi1G6fVGAJ3s1TzY=
In-Reply-To: <ui0fi4$293il$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Thu, 2 Nov 2023 15:46 UTC

Am 02.11.2023 um 16:34 schrieb David Brown:

> 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.  Thismakes them very
> distinctly different on such OS's - a mutex is a lock, a semaphore
> (binary or otherwise) is a signalling mechanism.

Does Linux actually boost thread priorities with mutexes ?


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

Pages:1234567
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor