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博客 ” ,链接:http://blog.itpub.net/10599713/viewspace-983330/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/10599713/viewspace-983330/
本文探讨了缓存与缓冲区的基本概念及其在操作系统中的作用。缓存主要用于提高磁盘I/O操作效率,通过将频繁访问的数据存储在RAM中来提升性能。而缓冲区则作为进程间通信的一种手段,用于暂时存储输入数据直至被处理。
599

被折叠的 条评论
为什么被折叠?



