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 <v0q1b7$29uj9$1@raubtier-asyl.eternal-september.org>
Deutsch   English   Français   Italiano  
<v0q1b7$29uj9$1@raubtier-asyl.eternal-september.org>

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

Path: ...!news.nobody.at!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita Montero <Bonita.Montero@gmail.com>
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: Threads across programming languages
Date: Tue, 30 Apr 2024 07:59:06 +0200
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <v0q1b7$29uj9$1@raubtier-asyl.eternal-september.org>
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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 30 Apr 2024 07:59:04 +0200 (CEST)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="50660c7bf27b19b3bba1d0771662361a";
	logging-data="2423401"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18oVdtpOqGm/aVq4hC8DQ0hidqSQrTXuuE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:j/k8hmc0mBsaTwZWrEWbUkap28Y=
In-Reply-To: <v0pqsr$28g0v$3@dont-email.me>
Content-Language: de-DE
Bytes: 2182

Am 30.04.2024 um 06:09 schrieb Lawrence D'Oliveiro:
> On Tue, 30 Apr 2024 05:58:31 +0200, Bonita Montero wrote:
> 
>> Am 29.04.2024 um 22:31 schrieb Lawrence D'Oliveiro:
>>
>>> On Mon, 29 Apr 2024 18:18:57 +0200, Bonita Montero wrote:
>>>
>>>> But you need multithreading to have maximum throughput since you often
>>>> process the data while other data is available.
>>>
>>> In a lot of applications, the bottleneck is the network I/O, or a GUI
>>> waiting for the next user event, that kind of thing. In this situation,
>>> multithreading is more trouble than it’s worth. This is why coroutines
>>> (in the form of async/await) have made a comeback over the last decade
>>> or so.
>>
>> 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.