Writing Immediately With fsync()
We look at an interface fsync() in UNIX that can be used to write to disk immediately.
We'll cover the following...
Most times when a program calls write()
, it is just telling the file system: please write this data to persistent storage, at some point in the future. The file system, for performance reasons, will buffer such writes in memory for some time (say 5 seconds, or 30); at that later point in time, the write(s) will actually be issued to the storage device. From the perspective of the calling ...
Access this course and 1400+ top-rated courses and projects.