Quantcast
Browsing latest articles
Browse All 2 View Live

Answer by Grodriguez for I/O concept flush vs sync

In Java, the flush() method is used in output streams and writers to ensure that buffered data is written out. However, according to the Javadocs: If the intended destination of this stream is an...

View Article


I/O concept flush vs sync

I have come across these two terms and my understanding of them seem to overlap with each other. Flush is used with buffers and sync is used to talk about persisting changes of file to disk. In C,...

View Article

Browsing latest articles
Browse All 2 View Live