Skip to main content

Cache Memory

Cache Memory


Cache memory is an intermediate form of storage between registers and the primary memory. It is used to store instructions and data that are repeatedly required to execute programs thereby improving the overall system speed and increase the performance of the computer. Keeping frequently accessed data and instructions in the cache avoids accessing the slower primary memory.


Working of the Cache Memory When a program is being executed and the CPU wants to read data or instructions, then the following steps will be performed:


CPU first checks whether the data or instruction is available in cache memory. If it is not present, the CPU reads the data or instructions from the main memory into the processor registers. The CPU also copies it into the cache memory. When the same piece of data/instruction is needed, the CPU reads it from the cache memory instead of the main memory

Comments

Popular posts from this blog

Concept Of Hardware and Software

Concept Hardware and Software The concept of hardware and software is very simple in the computer. A computer system is made of two parts- Hardware and Software. Hardware All physical parts of the computer can be said as hardware of the computer. For example, all the input and output devices from the parts of the computer. If we think of computer as a living being, then the hardware would be the body. Since the computer hardware is a part of a machine, it can only understand two basic concepts: 'ON' and 'OFF'. The 'ON' and 'OFF' concepts is called binary. Computer software was developed to tell the computer hardware what to do. Software The computer hardware cannot think and make decision on its own. The hardware needs a software to instruct what to be done. A program is a set of instruction that is arranged in a sequence to guide a computer to find a solution for the given problem. The process of writing a program is called programming .

What is CPU (Central Processing Unit) Architecture

What is CPU (Central Processing Unit) Architecture CPU or Central Processing unit can be called the brain of the computer system because the entire processing of data is done here. It is made up of more than one microprocessors which consist of two main parts - Arithmetic and Logical Unit (ALU) and Control Unit(CU) . Arithmetic and Logical Unit The ALU performs all kinds of calculations, such as arithmetic fadd, subtract, multiply, divide, etc.), comparison (less than, greater than, or equal to), and other operations. The intermediate results of processing may be stored in the main memory, as they might be required again. When the processing completes, the final result is then transferred to the main memory. Hence, the data may move from main memory to the ALU multiple times before the processing is over. Control Unit The main function of the CU is to direct and coordinate the computer operations. It interprets the instructions (program) and initiates action to execute them. The CU...