当前位置:网站首页>The difference between cache and buffer
The difference between cache and buffer
2022-07-07 12:57:00 【LC181119】
1. Cache: Buffer zone , It's cache , It's located in CPU A small but fast memory between memory and main memory , because CPU Is much faster than the speed of main memory ,CPU It takes a long time to read data from memory , and Cache preserved CPU Just used data or recycled data , Now from Cache It's much faster to read data in , Less CPU Waiting time , Improve the performance of the system .
Cache It's not about caching files , It's a cache block ( Block is I/O Read and write the smallest unit );Cache It's usually used in I/O On the request , If multiple processes want to access a file , You can read this file into Cache in , So the next process gets CPU Control and access this file directly from Cache Read , Improve system performance .
2. Buffer: buffer , It is used to store data between devices with asynchronous speed or different priority ; adopt buffer It can reduce the waiting time for inter process communication , When a device with high storage speed communicates with a device with low storage speed , For slow data, store it in buffer, To a certain extent, the device with fast storage can read again buffer The data of , In the meantime, store fast devices CPU Can do other things .
Buffer: Usually used to write to disk , for example : A process requires multiple fields to be read in , When all the required fields are read in, the fields that have been read in will be put into buffer in .
边栏推荐
- xshell评估期已过怎么办
- 聊聊Redis缓存4种集群方案、及优缺点对比
- [疑难杂症]pip运行突然出现ModuleNotFoundError: No module named ‘pip‘
- Realize a simple version of array by yourself from
- [Q&A]AttributeError: module ‘signal‘ has no attribute ‘SIGALRM‘
- 红杉中国完成新一期90亿美元基金募集
- How to continue after handling chain interruption / sub chain error removed from scheduling
- 3D content generation based on nerf
- ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
- Layer pop-up layer closing problem
猜你喜欢

Master公式。(用于计算递归的时间复杂度。)

Leetcode skimming: binary tree 23 (mode in binary search tree)

基于NeRF的三维内容生成

2022危险化学品生产单位安全生产管理人员考题及在线模拟考试

处理链中断后如何继续/子链出错removed from scheduling

关于 appium 启动 app 后闪退的问题 - (已解决)

【无标题】

AUTOCAD——大于180度的角度标注、CAD直径符号怎么输入?

Day22 deadlock, thread communication, singleton mode

2022广东省安全员A证第三批(主要负责人)考试练习题及模拟考试
随机推荐
Day-20 file operation, recursive copy, serialization
Find ID value MySQL in string
Leetcode skimming: binary tree 23 (mode in binary search tree)
What are the benefits of ip2long?
Several ways to clear floating
ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
Enterprise custom form engine solution (XII) -- experience code directory structure
Sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]
[疑难杂症]pip运行突然出现ModuleNotFoundError: No module named ‘pip‘
Connect to blog method, overload, recursion
Layer pop-up layer closing problem
test
Leetcode skimming: binary tree 21 (verifying binary search tree)
如何将 @Transactional 事务注解运用到炉火纯青?
test
@What is the difference between resource and @autowired?
Design and implementation of communication protocol
【从 0 开始学微服务】【02】从单体应用走向服务化
Aosikang biological sprint scientific innovation board of Hillhouse Investment: annual revenue of 450million yuan, lost cooperation with kangxinuo
Day21 multithreading