Sujet : Re: Threads across programming languages
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.c++ comp.lang.cDate : 29. Apr 2024, 21:31:15
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v0p02j$1ur12$5@dont-email.me>
References : 1 2
User-Agent : Pan/0.155 (Kherson; fc5a80b8)
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.