Reputation:
I lack formal knowledge in Operating systems and C. My questions are as follows.
fread
in C, does the entire disk block containing that byte is brought into memory or just the byte?Upvotes: 5
Views: 393
Reputation: 7960
Here's my answers
setvbuffer
can change that.FILE
structure. This is implementation (compiler) specific so don't touch it.The above caching is used by the C runtime library not the OS. The OS may or may not have disk caching and is a separate mechanism.
Upvotes: 5