wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Memory Management

profile
Vrudanshi Bavliya
Aug 14, 2024
0 Likes
0 Discussions
64 Reads

Memory management is the process of controlling and coordinating a computer’s main memory. It ensures that blocks of memory space are properly arranged and allocated so the operating system (OS) , applications and other running processes have the memory they need to carry out their operations. 

 Types of Memory

Registers – It is a temporary Storage area built in a CPU access time of register is below 10ns, and registers have lowest capacity that is of few KB of words. 

Cache Memory – It is a high speed memory. The purpose of cache memory is to store those program that are repeatedly used or likely to be used in the near future. 

Main Memory – It is also known as Primary memory or RAM or Physical memory. The CPU can execute only the data that is present in the Main memory . It is the temporary storage location where data of currently running programs are stored for short period of time. 

Secondary Memory – It allows user to store data that can be easily retrieved. This memory cannot be directly used. It can be accessed only by the main memory. For example:- Magnetic tape, magnetic disk, hard disc etc.

Principles for effective memory

Make the common case fast - The principal says that the data which is more frequently used should be kept in faster device. It is based on amdhal's law. 

Principle of locality - It is based on locality of references , According to this, the programs tend to reuse data and instruction they have used recently. 90/10 rule comes from empirical Observation:- a program spends 90% of its time in 10% of its code. An Implication of locality is that we can predict with reasonable accuracy what instructions and data a program will use in the near future based on its accesses in the recent past. 

Two different types of locality

Temporal locality - States that recently accessed items are likely to be accessed in the near future. 

Spatial locality - States that items whose addresses are near one another tend to be referenced closed together in time.



Comments ()


Sign in

Read Next

STARVATION

Blog banner

Virus

Blog banner

Modern Operating Systems.

Blog banner

SmartData Collective: Data Science aur Analytics ki Duniya

Blog banner

Development Of Modern Operating System

Blog banner

Crypto tax evasion

Blog banner

Cache memory

Blog banner

Photorec - media recovery tool

Blog banner

DISK SCHEDULING

Blog banner

Why Moms Are Choosing Customised School Accessories Over Generic Products?

Blog banner

Demystifying Cryptography: A Beginner's Guide

Blog banner

Real time scheduling

Blog banner

Operating system

Blog banner

Rain

Blog banner

Subnet Masking

Blog banner

Delhi city

Blog banner

Creating Digitally Signed Document

Blog banner

Process Creation

Blog banner

Video games

Blog banner

How to Find the Right Therapist For Me?

Blog banner

Never give up

Blog banner

10 Interesting Facts about Attack on Titan

Blog banner

Disk scheduling

Blog banner

Texting is actually better than talking in person

Blog banner

Types of email

Blog banner

Evolution of Operating Systems

Blog banner

Points to consider if you're planning to visit Florida in 2026

Blog banner

Breaking the Cycle of Loneliness : Protecting your Mental Health Through meaningful Connection ( Part — 2)

Blog banner

Preparing Students for Higher Education: How International Schools Shape Future Success

Blog banner

The Art Of Getting What You Want In Life....

Blog banner

Sniffing: A Cyber Security Threat

Blog banner

SMARTSHEET

Blog banner

RAID

Blog banner

How social media affect

Blog banner

The Rise of Evil Twin Attacks: A New Kind Of Spoofing Cyberattack

Blog banner

Os(Computer security threats)

Blog banner

THE DESIRE OF MANY

Blog banner

IoT Architecture Based Security

Blog banner

SPEM

Blog banner

Wrike

Blog banner

Race Condition in Operating Theatre

Blog banner

Blog on Smartsheet.

Blog banner