Article View: comp.lang.c++
Article #1101Re: Fwd: futexes vs. system semaphores
From: Bonita Montero
Date: Thu, 03 Dec 2026 07:09
Date: Thu, 03 Dec 2026 07:09
7 lines
1777 bytes
1777 bytes
I extended my benchmark to test futexes not only with two threads but with two threads up to hardware_concurrency() threads. Under Linux the performance with three threads up to hc is exactly the same as with a Pthread semaphore. Under Windows the performance drops to 50% the performance of futexes with three threads and above.
Technical Details
Message-ID:
<11er4jp$10h0$1@raubtier-asyl.eternal-september.org>Path:
mbox-mo1.pugleaf.net!srl.newsdeef.eu.MISMATCH!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mailReferences:
<11duih8$sm6c$1@raubtier-asyl.eternal-september.org> <11duq79$vfpt$1@raubtier-asyl.eternal-september.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu.MISMATCH!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail From: Bonita Montero <Bonita.Montero@gmail.com> Newsgroups: comp.lang.c++ Subject: Re: Fwd: futexes vs. system semaphores Date: Thu, 3 Dec 2026 08:09:45 +0100 Organization: A noiseless patient Spider Lines: 7 Message-ID: <11er4jp$10h0$1@raubtier-asyl.eternal-september.org> References: <11duih8$sm6c$1@raubtier-asyl.eternal-september.org> <11duq79$vfpt$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, 03 Dec 2026 07:09:45 +0000 (UTC) Injection-Info: raubtier-asyl.eternal-september.org; logging-data="33312"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+rZHPPP8scngT1j8XSuqvEE0f3h+L7Xo0="; posting-host="17cf8e9141147cb146fb1eeb71e228b0" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:Vv69RGIhFBGVwCEjcsRLAGe6WdM= sha256:UeHtYRClPFkdQ+E8Xwyh8JKWOOUgp4278QlVviJN+dI= sha1:sNaYNODyPr3mGkNGA7pOIGYrZ6g= sha256:tsY3xsZBsqcreMu7nAtN4I/WizeIAWS8N1qL233L1dg= In-Reply-To: <11duq79$vfpt$1@raubtier-asyl.eternal-september.org> Content-Language: de-DE