Good summary
> Instead of launching an entirely new thread for each task, it runs all three tasks on the same thread.
I don’t think that’s the case. Tokio multiplexes m tasks into a pool of n threads so it’s able to use all available cores. (M:N threading)
-
-
-
Oh ok thanks! Yea I suspected it wasn’t quite that simple. I’ll update the post later today. I wonder if there’s a way to set m and n? Or at least know what those values are...
- Još 1 odgovor
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.