B
B
beduin012018-12-22 19:08:46
Programming
beduin01, 2018-12-22 19:08:46

Is there asynchronous file IO?

Actually heard the thesis that "asynchronous file IO does not exist". Is it so? If I understand correctly, then all the asynchrony in both network IO and file IO is based on polling buffers / sockets for data.
Correct me if I'm not mistaken.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Gornostaev, 2018-12-22
@sergey-gornostaev

Cross-platform does not exist. Therefore, asynchronous code in Python and Java uses executors for file operations, while in Node.js the same solution is hidden in the libuv abstraction layer.
Is that zero-copy through the already mentioned DMA. But this method is not always applicable.

A
Armenian Radio, 2018-12-22
@gbg

Yes, there is. DMA, that's it.

G
Griboks, 2018-12-22
@Griboks

At the level of the program certainly exists. At the physical level, it depends on the system, usually yes.
If you are talking about parallel io, then, usually, the lowest level works in series.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question