Open In App

Difference between Buffer and Cache

Improve
Improve
Like Article
Like
Save
Share
Report

1. Buffer :
Buffer is a temporary storage area, usually a block in memory, in which items are placed while waiting to be transferred from an input device or to an output device. It is mostly used for input/output processes. As an example, if you were to print a long document, you would not want your CPU waiting around asking your printer “Are you ready for another paragraph?” Instead, the CPU will fill a memory buffer with the document’s data, instruct the printer to print the buffer contents, and go back to its other business.

2. Cache :
Cache is a smaller and fast memory component in the computer which is inserted between the CPU and the main memory. To make this arrangement effective. The cache needs to be much faster than main memory. This approach is more economical than the use of fast memory devices to implement the entire main memory.



Difference between Buffer and Cache :

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.


Last Updated : 21 Aug, 2020
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads