Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <v122gd$ddcf$1@dont-email.me>
Deutsch   English   Français   Italiano  
<v122gd$ddcf$1@dont-email.me>

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

Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: Threads across programming languages
Date: Fri, 3 May 2024 00:07:57 -0700
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <v122gd$ddcf$1@dont-email.me>
References: <GIL-20240429161553@ram.dialup.fu-berlin.de>
 <v0ogum$1rc5n$1@dont-email.me> <v0ovvl$1ur12$4@dont-email.me>
 <v0p06i$1uq6q$5@dont-email.me>
 <v0shti$2vrco$2@raubtier-asyl.eternal-september.org>
 <v0spsh$31ds4$3@dont-email.me>
 <v0stic$325kv$3@raubtier-asyl.eternal-september.org>
 <v0svtn$32o8h$1@dont-email.me>
 <v0t091$32qj6$1@raubtier-asyl.eternal-september.org>
 <v0u90h$3c1r5$4@dont-email.me> <v0v7rf$3lu04$1@dont-email.me>
 <v0v8u3$3m7rm$1@dont-email.me> <v10t0v$20cs$1@dont-email.me>
 <v116q4$4at1$1@dont-email.me> <v119bu$4pfa$1@dont-email.me>
 <20240502171354.89@kylheku.com> <v11ann$52ol$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 03 May 2024 09:07:58 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="96a83a72b940e46d81a2b3c04610ffbd";
	logging-data="439695"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+QrEexjByNfcaeW1sEh1kNoodumB6nW4g="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:JahftqtVihdk1Gym1jKRz5XGKGo=
Content-Language: en-US
In-Reply-To: <v11ann$52ol$1@dont-email.me>
Bytes: 2483

On 5/2/2024 5:22 PM, Chris M. Thomasson wrote:
> On 5/2/2024 5:15 PM, Kaz Kylheku wrote:
>> On 2024-05-02, Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:
>>> The CPU can become a bottleneck.
>>
>> Unfortunately, not in a way that you could use for playing slide
>> guitar, let alone actually drinking beer through it.
>>
> 
> :^D The problem is that I have had to debug server code that actually 
> locked a global mutex ala:
> 
> for (;;)
> {
>     io_complete& io = wait_for_io(INFINITE);
> 
>     lock();
>       io.foobar();

A fun part...

io.foobar() does some things that might call lock() again, during 
certain scenarios. Oh, so the programmers says, well, lock() needs to be 
recursive... Oh, well, it seems to work. Deadlock! Shit!



>     unlock();
> }
> 
> Oh shit.