Deutsch   English   Français   Italiano  
<vth5ig$3kqh7$1@raubtier-asyl.eternal-september.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!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: signalling a condvar from inside vs. signalling a condvar von
 outside
Date: Sun, 13 Apr 2025 22:08:15 +0200
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <vth5ig$3kqh7$1@raubtier-asyl.eternal-september.org>
References: <vte0g6$pmgv$1@raubtier-asyl.eternal-september.org>
 <vtef76$16guv$1@dont-email.me>
 <vtgloc$36urv$1@raubtier-asyl.eternal-september.org>
 <vth3gt$3j0qm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 13 Apr 2025 22:07:45 +0200 (CEST)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="acfd86acf0cee522761f246584ed98ac";
	logging-data="3828263"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18qX1l32HBLYdumOptF2xJrRu8gMcwZ9s0="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:8yofuFkoFmnSh0y6Io5iuwKjyVI=
In-Reply-To: <vth3gt$3j0qm$1@dont-email.me>
Content-Language: de-DE
Bytes: 2114

Am 13.04.2025 um 21:32 schrieb Chris M. Thomasson:
> On 4/13/2025 8:38 AM, Bonita Montero wrote:
>> Am 12.04.2025 um 21:33 schrieb Chris M. Thomasson:
>>
>>> There is a scalability problem wrt signalling inside the critical 
>>> section. Does your convdar impl use wait morphing?
>>
>> There's no scalability problem with that since the kernel call to
>> release a thread happens only when the mutex is accessible *and*
>> the cv is signalled.
>>
>>
> 
> No. ...

The numer of context-switches my code shows say that there's only
one context-switchz per wait.

>When you signal a condvar while holding the lock it means that  waiters can wake and just instantly wait on the lock. This is why wait 
> morphing was created. It helps, but only so much...


idiot.