Sujet : Re: Threads across programming languages
De : Bonita.Montero (at) *nospam* gmail.com (Bonita Montero)
Groupes : comp.lang.c++ comp.lang.cDate : 02. May 2024, 06:53:21
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v0v9oh$3mcpv$1@raubtier-asyl.eternal-september.org>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : Mozilla Thunderbird
Am 02.05.2024 um 07:39 schrieb Lawrence D'Oliveiro:
Another reason to avoid threads. So long as your async tasks have an await
call somewhere in their main loops, that should be sufficient to avoid
most bottlenecks.
If you have a stream of individual I/Os and the processing of the I/Os
takes more time than the time between the I/Os you need threads. And
usually the processing takes longer.
You constantly deny technologies which overburden you.