当前位置:网站首页>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 .
边栏推荐
- Polymorphism, final, etc
- 谷歌浏览器如何重置?谷歌浏览器恢复默认设置?
- 人均瑞数系列,瑞数 4 代 JS 逆向分析
- 在字符串中查找id值MySQL
- PHP调用纯真IP数据库返回具体地址
- 图像像素读写操作
- .Net下极限生产力之efcore分表分库全自动化迁移CodeFirst
- 红杉中国完成新一期90亿美元基金募集
- 2022 polymerization process test question simulation test question bank and online simulation test
- Day-15 common APIs and exception mechanisms
猜你喜欢
2022 polymerization process test question simulation test question bank and online simulation test
Leetcode question brushing: binary tree 26 (insertion operation in binary search tree)
Cookie
Day-15 common APIs and exception mechanisms
云检测2020:用于高分辨率遥感图像中云检测的自注意力生成对抗网络Self-Attentive Generative Adversarial Network for Cloud Detection
.Net下極限生產力之efcore分錶分庫全自動化遷移CodeFirst
How to continue after handling chain interruption / sub chain error removed from scheduling
Blog recommendation | Apache pulsar cross regional replication scheme selection practice
Session
Leetcode brush question: binary tree 24 (the nearest common ancestor of binary tree)
随机推荐
2022 polymerization process test question simulation test question bank and online simulation test
“新红旗杯”桌面应用创意大赛2022
详解ThinkPHP支持的URL模式有四种普通模式、PATHINFO、REWRITE和兼容模式
【从 0 开始学微服务】【02】从单体应用走向服务化
关于 appium 启动 app 后闪退的问题 - (已解决)
How to apply @transactional transaction annotation to perfection?
智云健康上市:市值150亿港元 SIG经纬与京新基金是股东
What if does not match your user account appears when submitting the code?
- Oui. Migration entièrement automatisée de la Sous - base de données des tableaux d'effets sous net
AUTOCAD——大于180度的角度标注、CAD直径符号怎么输入?
ICLR 2022 | 基于对抗自注意力机制的预训练语言模型
Day21 multithreading
云检测2020:用于高分辨率遥感图像中云检测的自注意力生成对抗网络Self-Attentive Generative Adversarial Network for Cloud Detection
2022A特种设备相关管理(锅炉压力容器压力管道)模拟考试题库模拟考试平台操作
Several ways to clear floating
MySQL导入SQL文件及常用命令
ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
Leetcode brush questions: binary tree 19 (merge binary tree)
xshell评估期已过怎么办
Simple implementation of call, bind and apply