Article View: comp.lang.c
Article #2153Re: Why ordered mutexed don't work ...
From: Chris M. Thomasson
Date: Thu, 03 Dec 2026 21:47
Date: Thu, 03 Dec 2026 21:47
46 lines
3570 bytes
3570 bytes
On 12/2/2026 11:39 PM, Ross Finlayson wrote: > On 12/02/2026 06:30 PM, Ross Finlayson wrote: >> On 12/02/2026 02:13 PM, Chris M. Thomasson wrote: >>> On 12/2/2026 10:23 AM, Ross Finlayson wrote: >>> [...] >>>> I just learned about fast user-space mutex, yet only want the best >>>> for my threads, best anti-starvation being fair and a strong semaphore. >>> So, well, that answers some of my questions. Those have been around for >>> ages. >>> >>> [...] >> >> >> Thanks for reading. Now please tell me something I don't know. Agreeably >> the considerations here about synchronization and contention >> and critical transactionality have been over the widely distributed >> and the massively parallel instead of the in-memory and in-system, >> about the stack of things editing the single value in the giant >> data-table of the single-page-app with the single-domain-backend. >> >> Then, like we were talking about I/O-multiplexing and various >> technical considerations, I'd be interested more about the >> "conventional wisdom" or "herd instinct" of the lock-multiplexing, >> as it were, or single and multiple producers, consumers: and items. >> >> > > That's sincerely, if with room for interpretation, I'm looking > at in-memory in-system queues and care about knowing things. > > > Here's a good article about memory ordering, "Memory ordering in CPUs". > > https://fgiesen.wordpress.com/2026/08/25/memory-ordering-in-cpus/ [...] The first paragraph is radically wrong. So, how good is it again? ___________________ I frequently see statements about differences between strongly ordered architectures (like x86 or SPARC) and weakly ordered architectures (like ARM or RISC-V), with the confident assertion that weakly ordered machines are inherently much more scalable than strongly ordered ones. ___________________ LOL! SPARC can be in RMO, PSO or TSO mode. Sorry Ross. AFAICT, this guy has never used a SPARC before, or even heard of its MEMBAR instruction. Yes there are SPARCS that go to RMO mode.
Technical Details
Message-ID:
<11eso0r$sl6n$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!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!.POSTED!not-for-mailReferences:
<11ep150$2vi4k$1@raubtier-asyl.eternal-september.org> <20261202073550.188@kylheku.com> <lLCdnXR8RdSj_432nZ2dnZfqnPqdnZ2d@giganews.com> <11eq55c$3jdjs$5@dont-email.me> <v56dndhEuvezSY32nZ2dnZfqn_ednZ2d@giganews.com> <UNudnd2Nie5VgYz2nZ2dnZfqn_adnZ2d@giganews.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!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!.POSTED!not-for-mail From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> Newsgroups: comp.lang.c Subject: Re: Why ordered mutexed don't work ... Date: Thu, 3 Dec 2026 13:47:03 -0800 Organization: A noiseless patient Spider Lines: 46 Message-ID: <11eso0r$sl6n$1@dont-email.me> References: <11ep150$2vi4k$1@raubtier-asyl.eternal-september.org> <20261202073550.188@kylheku.com> <lLCdnXR8RdSj_432nZ2dnZfqnPqdnZ2d@giganews.com> <11eq55c$3jdjs$5@dont-email.me> <v56dndhEuvezSY32nZ2dnZfqn_ednZ2d@giganews.com> <UNudnd2Nie5VgYz2nZ2dnZfqn_adnZ2d@giganews.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 03 Dec 2026 21:47:07 +0000 (UTC) Injection-Info: dont-email.me; logging-data="939223"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18f8i5cvoADRNsoK0JaBh3P+zDyTwO7OGQ="; posting-host="27be630b90107ef0dd0e5ccb8f536ba4" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:FIoa5yIzYsvJOOy+KejrsLs7S90= sha256:7L/oQzrkm98IBTBvKezYe9RDKblAAuFJ8KGTxYGAMds= sha1:OOBbRPl8SfW0nSqIYWmMPAScwLM= sha256:uVZF8qt0vctkJfmjO/epQzdP+4EGu81ff54swTjy6hc= Content-Language: en-US In-Reply-To: <UNudnd2Nie5VgYz2nZ2dnZfqn_adnZ2d@giganews.com>