Twitter | Pretraživanje | |
Pat Shaughnessy
I tried Rust’s new async/await feature for the first time: “Downloading 100,000 Files Using Async Rust”
Reply Retweet Označi sa "sviđa mi se" More
Wesley Moore 21. sij
Odgovor korisniku/ci @pat_shaughnessy
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)
Reply Retweet Označi sa "sviđa mi se"
Pat Shaughnessy 21. sij
Odgovor korisniku/ci @wezm
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...
Reply Retweet Označi sa "sviđa mi se"