3 ms·
That's not really relevant. Both the article and the comment is talking about single-threaded I/O.
by kccqzy 9y ago
That's not really relevant. Both the article and the comment is talking about single-threaded I/O.
- gpderetta 9y agoIt is very relevant. Both async io and multithreaded io are ways to extract parallelism. Which one is more appropriate depends on the characteristics of the problem.
- skate22 9y agoYou may have missed the "multi threaded vs single threaded" section where they talk about a very similar pattern: "The way it works is simple, it uses blocking IO, but each blocking call is made in its own thread. Now depending on the implementation, it either takes a callback, or uses a polling model, like returning a Future."