缓冲区和缓存的区别?

Buffer and cache Difference?(缓冲区和缓存的区别?)
本文介绍了缓冲区和缓存的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以详细说明 - 系统内存中的缓冲区和缓存有什么区别?

Can anybody detail - What is the difference between Buffer and Cache in system memory?

推荐答案

buffer 只是一个容器,用于在任何给定时间比消费者更多的数据进入时在短时间内保存数据可以使用/处理.这是一种先进先出的情况 - 数据进来,可能会被缓冲,然后在一段时间后按照进来的顺序出去.

A buffer is just a container to hold data for a short period of time when more comes in at any given time than a consumer can use / process. It's a first-in, first-out situation - the data comes in, might be buffered, and goes out in the same order it came in, after a while.

缓存是用于加速某些操作的存储.事物被放入缓存中,并且应该从其中多次、一遍又一遍地检索.没有流经缓存"的机制——数据不会以相同的顺序进出——但它只是一个保存容器.订单可能是任何东西,真的 - 项目是通过一个键来寻址的,它们不会流过"但它们被放入"并留在那里(直到它们因为不被使用而被丢弃,或者因为系统下降).

A cache is a storage for speeding up certain operations. Things get put in a cache, and should be retrieved from it multiple times, over and over again. There's no "flowing through the cache" kind of mechanism - data doesn't come in and go out in the same order - but it's just a holding container. The order might be anything, really - items are addressed via a key, they don't "flow through" but they are "put in" and stay there (until they're thrown out because of not being used, or because the system goes down).

这篇关于缓冲区和缓存的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Execute complex raw SQL query in EF6(在EF6中执行复杂的原始SQL查询)
SSIS: Model design issue causing duplications - can two fact tables be connected?(SSIS:模型设计问题导致重复-两个事实表可以连接吗?)
SQL Server Graph Database - shortest path using multiple edge types(SQL Server图形数据库-使用多种边类型的最短路径)
Invalid column name when using EF Core filtered includes(使用EF核心过滤包括时无效的列名)
How should make faster SQL Server filtering procedure with many parameters(如何让多参数的SQL Server过滤程序更快)
How can I generate an entity–relationship (ER) diagram of a database using Microsoft SQL Server Management Studio?(如何使用Microsoft SQL Server Management Studio生成数据库的实体关系(ER)图?)