wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Memory Management

profile
Vrudanshi Bavliya
Aug 14, 2024
0 Likes
0 Discussions
63 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

What do you mean by online marketing and why do you need to know about it

Blog banner

What is a geographic information system (GIS)?

Blog banner

SNAPCHAT

Blog banner

Palm Vein Biometric Technology; Contactless vein authentication

Blog banner

Not anti-social, but pro-solitude

Blog banner

Impact of social media on the human life

Blog banner

Memory management

Blog banner

virtual memory

Blog banner

1.1 basic elements

Blog banner

Internet: The Vast Ocean Of Knowledge.

Blog banner

Life

Blog banner

GIS

Blog banner

Types of Big Data

Blog banner

Process, process creation and process termination

Blog banner

File Systems in OS.

Blog banner

Digital Balance: Keeping Children Mindful in the Screen Age

Blog banner

FASHION

Blog banner

internet email and it's applications

Blog banner

Operating system

Blog banner

RAID

Blog banner

Apple

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Memory Management

Blog banner

Never give up

Blog banner

INTRODUCTION

Blog banner

Raid

Blog banner

Different types of scam frauds

Blog banner

Concurrency and memory

Blog banner

Is Your Password Complex Enough?

Blog banner

Child labour

Blog banner

Heart Fulness Meditation

Blog banner

The Truth Behind Viral DIY Dental Hacks

Blog banner

Deadlock

Blog banner

NETSUITE

Blog banner

“Shot on iPhone” : A campaign by Apple that turned into a prodigy

Blog banner

Personalized Movie Recommendations with Data Science

Blog banner

Deadlock

Blog banner

Boxing

Blog banner

Proof-of-Stake (PoS)

Blog banner

Security requirements for Safe E-Payments

Blog banner

Importance of business process documentation

Blog banner

Predictive Analytics: How Data Science Predicts Trends(Weather ,Stock Market,Sales Forecasting ).

Blog banner