Sometime on Jul 18, rahul saxena assembled some asciibets to say:
can anyone tell me where can i read about, what buffers are ? are they there to act as a link between swp and ram memory spaces?? or
I found some really good explanations by searching on google. Basically, buffers are used when you have slow I/O devices. Data is stored in the buffer while the device catches up with the sending rate.
Cache on the other hand is used when the same data needs to be used over and over again. Instead of reading it fro disk everytime, it is stored in a cache, and read from memory.
Philip
On Jul 19, 2001 at 09:44, Philip S Tellis wrote:
Basically, buffers are used when you have slow I/O devices. Data is stored in the buffer while the device catches up with the sending rate.
Yes; buffers are FIFO.
Cache on the other hand is used when the same data needs to be used over and over again. Instead of reading it fro disk everytime, it is stored in a cache, and read from memory.
Yes. And it's usually random access. At least, modern caches are.