Various techniques

What is cache memory

cache

Cache memory or as it is called random access memory It is one of the types of memory in the computer, and it is characterized by its high speed, as it is located between the main memory and the processor, and it is used to store existing applications and programs to process them, in order to deal with them quickly and smoothly, and there are many goals for them, such as: storing the active parts of programs and applications, and speed up the computer, and it is divided into two main parts, namely RAM which is called RAM, and ROM It is mainly intended for reading only, and in this article we will talk about the difference between it and the memory card, its types, and its benefits.

The difference between cache and memory

Both are considered memory for storing and storing data, and then recovering it at another time, but the most important thing that distinguishes cache memory from memory is that it is used temporarily and not permanently, so it cannot be obtained immediately, and it is faster than normal memory, in addition to the limited interaction between cache memory, And the memory, and the cache memory was named after cache, from the original French verb Hide Which means hidden or cache, and the reason is that access to this memory is not always open to applications and programs, but rather the processor puts the information itself in the cache memory.

Cache types

  • The First Associated Type: The majority of good and fast screens use this type, and in this type it stores the address and content, but at the same time it cannot store the content anywhere, and the reason is that there are a large and huge number of places designated for storing data, and when someone wants to access it, different values ​​are searched to get Value.
  • The second type is Direct Mapping: This type is used to store all data in a specific location.
  • The third type, Set-Associative: This type combines the first and second type.

Cache properties

  • Increasing the speed of the computer by increasing the stored space of the cache memory, that is, the higher the speed of the cache memory, the more data stored in the active devices of various programs and applications, and therefore the storage capacity increases, that is, the relationship is a direct relationship between the speed of the computer and the speed of the cache memory.
  • Searching for information in the cache memory, when the processor starts searching for data and information in the cache memory, and when it does not find it, it resorts to the computer's main memory.
  • Executing active instructions and commands from stored applications and programs.
  • Easy to carry, due to its light weight.
  • Its low price compared to other types of memory.
  • Its price is measured in megahertz, which is the same unit used to measure the speed of a processor or processor Processor.
Previous
What is the treatment for hiccups
Next
How does genetic mutation occur?