Skip to main content

What is cache memory? How is it different from primary memory?

What is cache memory? How is it different from primary memory?

Definition of cache memory

Cache memory is a high speed memory built in the processor and used between the main memory and the processor.

1. Cache is memory is placed between the CPU and the main memory.
Cache memory works between Central process unit and Main memory
fig: describe the cache works between CPU & main memory.

2. Cache memory is faster than the main memory.
cache memory is describe that is faster than main memory
fig: The Cache memory is faster than the main memory according to working performance.

3. Its access time is less than the main memory.
Cache memory is lower than main memory according to access time.
fig: Cache performance of access time lower than main memory.

4. According to measurement the cache memory access time is 10 to 30 nano second (ns) and the main memory access time is 80 (ns) nano second.
table of cache memory and main memory of the access time.
table of access time of both memory.

5. The Cache memory stores instructions and data that are immediately executed.
fig describes that cache memory stores Instructions & Data but sometimes it don't stores data.

6. Sometimes cache is used to store only instruction. In case that such type of cache is used in 68020 processor.
when the cache stores only instructions then it used in processor 68020
Fig describes that when cache is uses in processor 68020 it stores only Instructions

7. Cache has 256 byte instruction cache which allows it to fetching to instructions from the main memory and store them in the cache during its time period when the system bus would otherwise be idle.

Dependency of the cache memory according to the performance

1. Speed and size of the cache memory.
2. The logic used to read data around the memory area read by the CPU.
3. The logic used to guess next required data by the CPU.
4. With the new microprocessor you can also add external cache memory to increase the performance of the CPU.


Cache controller:

1. The cache controller kept the frequently information in the cache memory required by the processor.
2. The required data by the processor in the next memory access is available in the cache memory this process is ensured by the cache controller.
3. The cache controller is improves the CPU speed because if the required data is available in the cache memory and made available for the CPU without wait state.

What is ‘Hit’ in the cache memory?

1. When the required data is available in the cache memory it is called Hit.
2. The processor immediately reads and writes the data in the data cache line during in the cache hit.
3. The proportion of accesses of the results is called cache hit rate.


What is ‘Miss’ in the Cache memory?

1. When the required data is not available in the Cache memory it is called Miss.
2. Most caches allocate new entry which comprises the tag just missed and copy of the data from the main memory during Miss Condition.
3. Misses are slower than the Hits because they required data to be transferred from the main memory.


How cache memory different from the primary memory?

Primary Memory

1. The function of primary memory is to stores information.
2. Its stores the program along with the data to be executed.
3. It also stores the necessary programs of the operating system or system software.
4. The executable necessary programs for users stores in the primary memory.
5. The main memory or primary memory is directly addressed by the CPU.
6. RAM {Random Access Memory} is also used as main memory or primary memory.
7. It is not faster than the Cache memory.
8. Its access time of the main memory is 80 ns (Nano second) as comparatively slower than Cache memory.

Cache memory

1. Sometimes the used as to stores only instructions not program.
2. It stores data and instructions which is immediately executed.
Some points are written above as make the difference primary memory and cache memory.
-----------------------------------------------------------------------------------------------------------------------------

My latest post is here links below about the databases technology

What are the components of data model in [DBMS] Relational Database Management System?

There are five main components of data model... 👉 click here ðŸ‘ˆ

What is stability of the distributed database management system?

In the distributed database model there are.... 👉 click here👈


Comments

Popular posts from this blog

Discuss the role played by the various components of the CPU

Q Discuss the roles played by the various components of CPU? The CPU is the brain of the computer system. All major calculations, manipulations and comparisons are made by the CPU. The CPU is also responsible for activating and controlling the operations performed by all other units of the computer system. The major components of the CPU are: a) Arithmetic Logic Unit (A.L.U.) b) Control Unit (CU) c) Primary Memory Arithmetic Logic Unit (A.L.U.): What is ALU Arithmetic logic Unit? ALU is a part of the CPU. It is a part to calculate the logical term in the CPU where the term refers to an operation of logical type. It also calculates the arithmetic terms in the CPU where the term refers to an operation of arithmetic type. It is used to direct access through the processor controller. The ALU connected to the input and output peripheral system through the bus with the different types of bus. Such as control bus, data bus etc. ALU is a part of the CPU that can calculate the input...

About the memory and its Classification of the computer Memory

What are the memories in the reference of computer system? What is Computer Memory?:- The memory is the essential for the computer to store the data, instruction and information. Without memory, computers are not be able to store data, instruction etc. The memory is an essential part of a computer system. It is require by the computer system to store information. Memory can be divided into the following two categories types: i) Primary or Main memory ii) Secondary Memory or Permanent memory In this figure I'll show the classification of the memory of computer system peripheral and architecture of organisations Primary Memory or Main memory:- i) Primary memory is the memory which is fastest memory of the computer. ii) It is a small but relatively fast storage unit that stores data and instruction which are used by the CPU (central processing unit). iii) This type or category of a memory is the main memory of the computer.It is a temporary memory and also we ...

What are the three main purpose of an operating system?

What are the three main purpose of an operating system? There are three main purpose of an operating system. 1. The first main purpose is User interface between hardware and users. 2. The second main purpose is to operate the internal parts of the computer properly and systematically using binary code system in the form of 0 and 1. 3. The third main purpose is to provide an environment for development of an application software and program to uses the hardware resources of the computer and connected to the computer parts which provides output to the user, the output from application software is very useful for users. Interface between user and hardware device  The operating system uses all types of interface such as command line interface, batch command interface and Graphical User Interface to interact with users to hardware peripheral devices through the monitor screen. Monitor has a big role making interface between hardware and users. Monitor visualization of all types ...