3 ms·
What if your tasks use blocking IO, and the number you tasks you have exceed a reasonable number of threads? Your answer might be to use async, event-driven IO
by pgwhalen 6y ago
What if your tasks use blocking IO, and the number you tasks you have exceed a reasonable number of threads?
Your answer might be to use async, event-driven IO instead, but the central thesis behind virtual threads is that this is a terrible programming model, and there's no reason the programming language can't help you write your code top to bottom, but still get the desired performance.