Sujet : Re: Threads across programming languages
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.c++ comp.lang.cDate : 02. May 2024, 06:39:15
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v0v8u3$3m7rm$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Pan/0.155 (Kherson; fc5a80b8)
On Wed, 1 May 2024 22:20:47 -0700, Chris M. Thomasson wrote:
On 5/1/2024 1:34 PM, Lawrence D'Oliveiro wrote:
>
Remember, we’re talking about maximizing I/O throughput here, so CPU is
not the bottleneck.
It can be if your thread synchronization scheme is sub par.
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.