📜  缓冲区和缓存之间的区别

📅  最后修改于: 2021-08-25 17:48:05             🧑  作者: Mango

1.缓冲区:
缓冲区是一个临时存储区域,通常是内存中的一个块,在其中等待等待从输入设备或输出设备传输的项目被放置在其中。它主要用于输入/输出过程。例如,如果要打印较长的文档,则不希望CPU等待询问打印机“您准备好准备另一段了吗?”取而代之的是,CPU将用文档的数据填充内存缓冲区,指示打印机打印缓冲区内容,然后再返回其其他业务。

2.缓存:
高速缓存是计算机中较小且快速的内存组件,已插入CPU和主内存之间。为了使这种安排有效。高速缓存需要比主内存快得多。这种方法比使用快速存储设备实现整个主存储器更经济。

缓冲区和缓存之间的区别:

S.No. BUFFER CACHE
1. Buffer is used to compensate for difference in speed between two processes that exchange or use data. Cache is a smaller and fastest memory component in the computer.
2. It is mostly used for input/output processes. It is used during reading and writing processes from the disk.
3. It is a normal storage area on ram for temporary storage. It is a high-speed storage area for temporary storage.
4. It stores the original copy of data. It stores the copy of original data.
5. It is always implemented in the main memory (RAM). It is implemented in RAM as well as in Disk.
6. It is made from dynamic ram. It is made from static ram.
7. It does not increase the accessing time. It increase the accessing speed of CPU.
8. It can be used in keyboards to edit typing mistakes . It does not posses such feature.