What is cache memory: easy using computer (3 type cache memory)

What is cache memory :- Cache memory is a high-speed memory, which is smaller in size but faster than the main memory (RAM). The CPU can access more quickly than primary memory. it is used to synchronize with the high-speed CPU and improve its performance. cache memory can only be accessed by the CPU. It is a reserved part of the main memory or storage device outside the CPU. It holds the data and programs often used by CPUs. thus, by acting as a buffer between RAM and CPU, it speeds up system performance.

What is cache memory

What is cache memory for used computer?

Types of cache memory :-

L1 :- The cache is the first level of memory, called level 1 cache or L1 cache memory. A small amount of such cache memory is present inside the CPU. If the CPU has four cores (quad core CPUs), each core will have its own level 1 cache. As this memory is present in the CPU, it can operate at CPU speed. The size of this memory varies from 2KB to 64 KB. The L1 cache further has two types of caches:
the instruction cache, which stores the instructions required by the CPU, and the data cache that stores the data required by the CPU.

L2 :- This cache is called level 2 cache or L2 cache. This level 2 cache occurs inside or outside the CPU. All cores of a CPU can have
their own separate Level 2 cache, or share one L2 cache among themselves. If it is outside the CPU, it is connected to the CPU with a
very high-speed bus. The size of such cache memory varies from 256 KB to 512 KB. In terms of speed, they are slightly slower than the L1 cache.

L3 :- This is known as Level 3 cache or L3 cache. This cache is not present in all processors. Some high-end processors have this type of cache. This cache is used to increase the performance of level 1 and level 2 caches. It is located outside the CPU and is shared by all cores of the CPU. the size of this memory ranges from 1 MB to 8 MB. Although it is slower than the L1 and L2 cache, it is faster than random access memory (RAM).

How does cache memory work with CPU :-

First, when the CPU requires data, it looks inside the L1 cache. If it finds nothing in L1, then it appears inside the L2 cache.
If this data is not found in the L2 cache, then it appears in the L3 cache. If data is found in cache memory, it is known as cache hit.
Conversely, if the data is not found inside the cache, it is called a cache miss.

If data is not available in any cache memory, it looks inside random access memory (RAM). If there is no data even in RAM, it will
get that data from the hard disk drive.

When an application is opened the first time a computer is started, the data in cache memory or
RAM is not available. In this case, the CPU gets data directly from the hard disk drive. Subsequently, when you start your computer or open an application, the CPU can get that data from cache memory or RAM.

All government jobs coming out in India like admit card, result, new job, syllabus, answer key, GK and GS, computer information will be provided on this website. Therefore, to come to this website, we have to type naukarigov.com in Google. And to get in touch with us, stay connected to the WhatsApp group and Telegram channel so that we can get information to you as soon as possible!

Join Telegram Channel :- Click Here

Join WhatsApp  Group :- Click Here

Join on Twitter :- Click Here

Join on Facebook :- Click Here

Treading

Load More...