当前位置:网站首页>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 .
边栏推荐
- MySQL导入SQL文件及常用命令
- HZOJ #235. Recursive implementation of exponential enumeration
- 【无标题】
- 货物摆放问题
- How does MySQL create, delete, and view indexes?
- [statistical learning methods] learning notes - Chapter 5: Decision Tree
- Charles: four ways to modify the input parameters or return results of the interface
- [爬虫]使用selenium时,躲避脚本检测
- Design and implementation of communication protocol
- Session
猜你喜欢

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

2022 polymerization process test question simulation test question bank and online simulation test

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

云检测2020:用于高分辨率遥感图像中云检测的自注意力生成对抗网络Self-Attentive Generative Adversarial Network for Cloud Detection

2022a special equipment related management (boiler, pressure vessel and pressure pipeline) simulated examination question bank simulated examination platform operation
![[pytorch practice] use pytorch to realize image style migration based on neural network](/img/20/8ed7113115709b6169be289b0c280a.png)
[pytorch practice] use pytorch to realize image style migration based on neural network

2022A特种设备相关管理(锅炉压力容器压力管道)模拟考试题库模拟考试平台操作

Sequoia China completed the new phase of $9billion fund raising

Adopt a cow to sprint A shares: it plans to raise 1.85 billion yuan, and Xu Xiaobo holds nearly 40%

About IPSec
随机推荐
Smart cloud health listed: with a market value of HK $15billion, SIG Jingwei and Jingxin fund are shareholders
图形对象的创建与赋值
Image pixel read / write operation
红杉中国完成新一期90亿美元基金募集
xshell评估期已过怎么办
[difficult and miscellaneous]pip running suddenly appears modulenotfounderror: no module named 'pip‘
Day-15 common APIs and exception mechanisms
如何将 @Transactional 事务注解运用到炉火纯青?
Creation and assignment of graphic objects
2022 practice questions and mock examination of the third batch of Guangdong Provincial Safety Officer a certificate (main person in charge)
Leetcode skimming: binary tree 25 (the nearest common ancestor of binary search tree)
@What is the difference between resource and @autowired?
博文推荐|Apache Pulsar 跨地域复制方案选型实践
What if does not match your user account appears when submitting the code?
Importance of database security
.Net下极限生产力之efcore分表分库全自动化迁移CodeFirst
HZOJ #235. 递归实现指数型枚举
Four functions of opencv
认养一头牛冲刺A股:拟募资18.5亿 徐晓波持股近40%
Day22 deadlock, thread communication, singleton mode