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 <v0ribl$2lc99$1@dont-email.me>
Deutsch   English   Français   Italiano  
<v0ribl$2lc99$1@dont-email.me>

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

Path: ...!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: Tue, 30 Apr 2024 12:55:33 -0700
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <v0ribl$2lc99$1@dont-email.me>
References: <GIL-20240429161553@ram.dialup.fu-berlin.de>
 <v0oh9f$1rdff$1@raubtier-asyl.eternal-september.org>
 <v0p02j$1ur12$5@dont-email.me>
 <v0pq95$28cml$1@raubtier-asyl.eternal-september.org>
 <v0pqsr$28g0v$3@dont-email.me>
 <v0q1b7$29uj9$1@raubtier-asyl.eternal-september.org>
 <v0q3ti$2aiff$1@dont-email.me>
 <v0q73c$2b8sm$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 30 Apr 2024 21:55:34 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="59e3cacb37dde286cbf606801e5bc80d";
	logging-data="2797865"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19OJF+uHUmQScDOShVzQOIfrK7DEeVgf0c="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:9pdYLwLnB9ti3o5VcZ8EsHt4SFE=
Content-Language: en-US
In-Reply-To: <v0q73c$2b8sm$1@raubtier-asyl.eternal-september.org>
Bytes: 2577

On 4/30/2024 12:37 AM, 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?
> 
> This has nothing to do with a heisenbug. Threads are slightly less
> performance than managing state with a coroutine,

Huh? Threads allow one to take advantage of the processing power of a 
multi-core/socket system. We can multiplex coroutines on a single 
thread, okay fine, ugg... This is not going to use the full spectrum of 
a system wrt multiple processing units. We can decide to use at least as 
many threads as there are cores. This can get the full power of said 
system. Sometimes using number_of_cores * 2 threads might be in order.


> but they're more
> convenient to develop. In Python the difference wouldn't count.