首页 > 应用开发 > IT综合 > The difference between buffers and cache

The difference between buffers and cache

原创 IT综合 作者:tsinglee 时间:2007-11-23 10:36:11 0 删除 编辑

Buffers are allocated by various processes to use as input queues, etc. Most of the time, buffers are some processes' output, and they are file buffers. A simplistic explanation of buffers is that they allow processes to temporarily store input in memory until the process can deal with it.

Cache is typically frequently requested disk I/O. If multiple processes are
accessing the same files, much of those files will be cached to improve performance (RAM being so much faster than hard drives), it's disk cache.

In a word :

A buffer is something that has yet to be "written" to disk.
A cache is something that has been "read" from the disk and stored for later use.


来自 “ ITPUB博客 ” ,链接:,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
  • 博文量
  • 访问量