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 connectionsPath: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: "Chris M. Thomasson"
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: Threads across programming languages
Date: Tue, 30 Apr 2024 12:56:14 -0700
Organization: A noiseless patient Spider
Lines: 34
Message-ID:
References:
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 30 Apr 2024 21:56:15 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="59e3cacb37dde286cbf606801e5bc80d";
logging-data="2797865"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Jw5SZ0XjpuoB1kgLnTi4WyLjKTSybQGk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:1l/3jXk1G8KG9qCrRkUHDjzXJaY=
Content-Language: en-US
In-Reply-To:
Bytes: 2509
On 4/30/2024 2:25 AM, Bonita Montero wrote:
> Am 30.04.2024 um 11:09 schrieb Lawrence D'Oliveiro:
>> On Tue, 30 Apr 2024 09:37:18 +0200, Bonita Montero wrote:
>>
>>> Am 30.04.2024 um 08:42 schrieb Lawrence D'Oliveiro:
>>>> On Tue, 30 Apr 2024 07:59:06 +0200, Bonita Montero wrote:
>>>>
>>>>> Am 30.04.2024 um 06:09 schrieb Lawrence D'Oliveiro:
>>>>>>
>>>>>> On Tue, 30 Apr 2024 05:58:31 +0200, Bonita Montero wrote:
>>>>>>
>>>>>>> Having a single thread and using state machines is more effortz.
>>>>>>
>>>>>> It would indeed. That’s why coroutines (async/await) are so handy.
>>>>>
>>>>> Using a thread is even more handy.
>>>>
>>>> Do you know what a “heisenbug” is?
>>>
>>> [No]
>>
>> Do you know what a “race condition” is?
>>
>
> Race conditions are mostly easy to handle.
Have you fixed your massive bug in your DCL futex thing?
> If you do I/O and the
> send / receive options are atomic you'd even not need a mutex and
> the race condition isn't a problem although it is not handled.
>