4 ms·
> Tokio allows you to mix async and native theads, which is both a virtuoso technical accomplishment and also a bit ridiculous. Can you describe what issues yo
by bluejekyll 3y ago
> Tokio allows you to mix async and native theads, which is both a virtuoso technical accomplishment and also a bit ridiculous.
Can you describe what issues you’re referring to? I use the multi-threaded Tokio runtime, I’ve not noticed any overhead with that in terms of development vs. single threaded. Also, multi-threaded async runtimes are generally what you want to make sure you don’t have any single tasks blocking others that could make progress in parallel.
- danenania 3y ago"Also, multi-threaded async runtimes are generally what you want to make sure you don’t have any single tasks blocking others that could make progress in parallel." Is there an advantage to multi-threaded async if you're IO-bound? If you want a bunch of concurrent system calls or network requests it seems like single-threaded async can handle that pretty nicely ala Node.js.
- toast0 3y agoDepends on your load, but many I/O bound loads are bigger than what you can do in a single thread.