Levels of Memory in Operating System Last Updated : 21 May, 2024 Summarize Comments Improve Suggest changes Share Like Article Like Report Memory hierarchy of a computer system it handles differences in speed. "Hierarchy" is a great way to say "order of thinks" like top to bottom, fast to slow, most important to least important. If you look at the memory hierarchy inside the computer, according to the fastest to the slowest: 1. CPU Registers 2. Caches memory 3. Main or Primary Memory 4. Secondary Memory These are explained as following below. CPU Register: These high speed registers in CPU serve as working memory for instruction and temporary storage of data. Typically, they create a general purpose register file to store data as it is processed. The capacity of 32 data words is typical of a register file, and each register can be read or written from within a single clock cycle.Caches Memory: Now a days, most computers contain another level of IC memory- sometimes several such levels- Known as cache memory, that is positioned logically between the CPU registers and main memory. storage capacity of a cache is less than of main memory, but with an access time of one to three cycles, the cache is much faster than main memory because some or all of it can reside on the same IC as the CPU. It is a special memory that compensates the speed mismatch between processor and main memory access time.For high performance computers, caches are essential components. Unlike the other three types of memory, the cache is usually transparent to programmers. Simultaneously, a computes cache and main memory implement directly mapped external memory by the instructions of the CPU.Main or Primary Memory: It is large, fairly fast external memory, which stores programs and data in active use. in main memory, storage locations are addressed directly by the load and store instruction of the CPU. While an IC Technology similar to that of a CPU register file is used, access is slower is due to large capacity of main memory and the fact that it is physically separated from the CPU. Access time of five or more clock cycles are usual. Integrated RAM works in two modes:Static RAM: Stores binary information in a flip-flop and remains valid until power is applied. It has a fast access time and is used to implement cache memory.Dynamic RAM - Stores binary information as charge on capacitors. To maintain the charge on the capacitor after a few milliseconds, the circuit must be refreshed. Compared to SRAM, it has more memory cells per unit area.Secondary Memory: Secondary memory is very large in capacity but much slower than memory. Secondary memory store system programs, large data files, and the like are not consistently required by the CPU. When the capacity of the main memory. in secondary storage, information is considered on line, but is accessed indirectly through I/O programs that transfer information between main and secondary memory. The most and common examples of secondary memory are magnetic hard disks and CD-ROMs (compact discs only read memories), both of which have relatively slow electrical access mechanisms. Storage capacity of several gigabytes is typical, while access time is measured in milliseconds. Comment More infoAdvertise with us Next Article Memory Management in Operating System R rajkumarupadhyay515 Follow Improve Article Tags : Operating Systems Similar Reads Memory Management in Operating System Memory is a hardware component that stores data, instructions and information temporarily or permanently for processing. It consists of an array of bytes or words, each with a unique address. Memory holds both input data and program instructions needed for the CPU to execute tasks.Memory works close 7 min read Virtual Memory in Operating System Virtual memory is a memory management technique used by operating systems to give the appearance of a large, continuous block of memory to applications, even if the physical memory (RAM) is limited. It allows larger applications to run on systems with less RAM.The main objective of virtual memory is 15+ min read Memory Protection in Operating Systems In this article, we will be discussing memory protection in operating systems. As we know that different operating systems use different forms of memory protection or separation which consists of Plan9 and Inferno, Microsoft Windows, etc. In Memory protection, we have to protect the operating system 5 min read Components of Operating System An Operating system is an interface between users and the hardware of a computer system. It is a system software that is viewed as an organized collection of software consisting of procedures and functions, providing an environment for the execution of programs. The operating system manages system s 7 min read Multilevel Paging in Operating System Multilevel paging is a memory management technique used in modern computer systems to efficiently handle large amounts of memory. It breaks down the virtual address space into smaller, more manageable pieces, organized into multiple levels of page tables.Multilevel Paging consists of two or more lev 6 min read Last Minute Notes â Operating Systems An Operating System (OS) is a system software that manages computer hardware, software resources, and provides common services for computer programs. It acts as an interface between the user and the computer hardware.Table of Content Types of Operating System (OS): ThreadsProcessCPU Scheduling Algor 15+ min read Like