当前位置:网站首页>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 .
边栏推荐
- Cookie
- Simple implementation of call, bind and apply
- Session
- - Oui. Migration entièrement automatisée de la Sous - base de données des tableaux d'effets sous net
- @Resource和@Autowired的区别?
- Several ways to clear floating
- Importance of database security
- Master公式。(用于计算递归的时间复杂度。)
- 聊聊Redis缓存4种集群方案、及优缺点对比
- mysql怎么创建,删除,查看索引?
猜你喜欢
Master公式。(用于计算递归的时间复杂度。)
Creation and assignment of graphic objects
数据库安全的重要性
Common knowledge of one-dimensional array and two-dimensional array
- Oui. Migration entièrement automatisée de la Sous - base de données des tableaux d'effets sous net
How to apply @transactional transaction annotation to perfection?
人均瑞数系列,瑞数 4 代 JS 逆向分析
HZOJ #240. Graphic printing IV
图形对象的创建与赋值
Connect to blog method, overload, recursion
随机推荐
[crawler] avoid script detection when using selenium
有什么类方法或是函数可以查看某个项目的Laravel版本的?
Unity 构建错误:当前上下文中不存在名称“EditorUtility”
Leetcode question brushing: binary tree 26 (insertion operation in binary search tree)
Talk about four cluster schemes of redis cache, and their advantages and disadvantages
《ASP.NET Core 6框架揭秘》样章[200页/5章]
HZOJ #240. Graphic printing IV
【无标题】
[learn micro services from 0] [02] move from single application to service
事务的七种传播行为
ip2long与long2IP 分析
Enterprise custom form engine solution (XII) -- experience code directory structure
Day-14 common APIs
2022a special equipment related management (boiler, pressure vessel and pressure pipeline) simulated examination question bank simulated examination platform operation
[difficult and miscellaneous]pip running suddenly appears modulenotfounderror: no module named 'pip‘
[learn microservices from 0] [03] explore the microservice architecture
Smart cloud health listed: with a market value of HK $15billion, SIG Jingwei and Jingxin fund are shareholders
What kind of methods or functions can you view the laravel version of a project?
处理链中断后如何继续/子链出错removed from scheduling
Go语言学习笔记-结构体(Struct)