当前位置:网站首页>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 .
边栏推荐
- Image pixel read / write operation
- Sorting, dichotomy
- Day-16 set
- Day-14 common APIs
- How to reset Google browser? Google Chrome restore default settings?
- [pytorch practice] write poetry with RNN
- 2022 polymerization process test question simulation test question bank and online simulation test
- 2022 examination questions and online simulation examination for safety production management personnel of hazardous chemical production units
- Session
- Star Enterprise Purdue technology layoffs: Tencent Sequoia was a shareholder who raised more than 1billion
猜你喜欢

Go语言学习笔记-结构体(Struct)

认养一头牛冲刺A股:拟募资18.5亿 徐晓波持股近40%

Day22 deadlock, thread communication, singleton mode

Star Enterprise Purdue technology layoffs: Tencent Sequoia was a shareholder who raised more than 1billion

“新红旗杯”桌面应用创意大赛2022

DHCP 动态主机设置协议 分析

Day-15 common APIs and exception mechanisms

Day-14 common APIs

ACL 2022 | small sample ner of sequence annotation: dual tower Bert model integrating tag semantics

ICLR 2022 | pre training language model based on anti self attention mechanism
随机推荐
ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
@Resource和@Autowired的区别?
Polymorphism, final, etc
Master公式。(用于计算递归的时间复杂度。)
CMU15445 (Fall 2019) 之 Project#2 - Hash Table 详解
非分区表转换成分区表以及注意事项
[pytorch practice] use pytorch to realize image style migration based on neural network
【从 0 开始学微服务】【03】初探微服务架构
PHP调用纯真IP数据库返回具体地址
Adopt a cow to sprint A shares: it plans to raise 1.85 billion yuan, and Xu Xiaobo holds nearly 40%
What if does not match your user account appears when submitting the code?
2022A特种设备相关管理(锅炉压力容器压力管道)模拟考试题库模拟考试平台操作
[binary tree] delete points to form a forest
xshell评估期已过怎么办
ISPRS2021/遥感影像云检测:一种地理信息驱动的方法和一种新的大规模遥感云/雪检测数据集
How to apply @transactional transaction annotation to perfection?
Shortcut key of Bash
免费手机号码归属地API查询接口
API query interface for free mobile phone number ownership
[statistical learning method] learning notes - support vector machine (Part 2)