wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

MEMORY MANAGEMENT REQUIREMENT

profile
Krishna Johari
Aug 14, 2024
0 Likes
0 Discussions
243 Reads

MEMORY MANAGEMENT REQUIREMENT


(I) Memory management is a critical function of an operating system (OS) that handles the allocation and deallocation of memory resources to various processes and ensures optimal use of the computer's memory. 

(II) Memory management keeps track of the status of each memory location, whether it is allocated or free. 

(III) It allocates the memory dynamically to the programs at their request and frees it for reuse when it is no longer needed. 

(IV) Memory management is meant to satisfy some requirements that we should keep in mind.

(V) Here are the key requirements for memory management in an operating system:


Relocation: 

  • In a multiprogramming system, memory is shared among multiple processes, making it difficult to predict which programs will be in main memory at the time of execution. 
  • Swapping active processes allows the operating system to have a larger pool of ready-to-execute processes.
  • However, swapping may cause a program to move to a different memory area. 
  • The operating system needs to know the location of process control information, execution stack, and code entry.
  • After loading the program, it must translate logical addresses into physical addresses.


Protection :

  • Multiple programs can cause interference, making it crucial to protect processes against unwanted interference.
  • A trade-off exists between relocation and protection requirements, as satisfaction of relocation increases protection difficulty. 
  • Predicting program location in main memory is impossible, so absolute address checks are not possible. 
  • Memory protection must be satisfied by the processor, as the operating system cannot control processes.


Sharing :

  • A protection mechanism must allow multiple processes to access the same main memory portion, allowing controlled access without compromising protection.
  • Memory management aims to support relocation-supported sharing capabilities, allowing each process to access the same copy of the program.



Logical organization :

  • Main memory is organized as linear or one-dimensional address space, with programs organized into modules. 
  • These modules can be unmodifiable or modified. 
  • The operating system and hardware must support a basic module for protection and sharing. 
  • Advantages include independent writing and compilation, different protection levels, and module-level sharing, allowing user-specified sharing.


Physical organization :

  • Computer memory consists of main and secondary memory, with main memory being faster and more costly. Secondary memory is used for long-term data storage, while main memory holds current programs. The main concern is information flow, which can be challenging for programmers due to overlaying and multiprogramming environments, where they cannot predict memory space availability.

Comments ()


Sign in

Read Next

The Five Steps of Data Science

Blog banner

Education?

Blog banner

Why is ITSM important in IT organization?

Blog banner

Blockchain Transactions

Blog banner

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

Blog banner

Fault Tolerance

Blog banner

LiquidPlanner

Blog banner

What is online marketing and why do you need to know about it ?

Blog banner

Why Meal Maharaj Prioritises Seasonal Vegetables in Every Meal Box

Blog banner

IT GOVERNANCE

Blog banner

DEVELOPMENTS LEADING TO MODERN OPERATING SYSTEMS

Blog banner

Compromising Mobile Platforms

Blog banner

Multithreading in Operating System

Blog banner

My Favorite Sportsperson

Blog banner

INTRODUCTION

Blog banner

Cyber Forensics

Blog banner

Raising mental health burden: A global and Indian perspective

Blog banner

What is Amazon?

Blog banner

OS Evolution Achievements

Blog banner

Virus

Blog banner

THE LEGAL ISSUES OF COMPUTER FORENSICS IN INDIA

Blog banner

Concurrency:Deadlock and Starvation

Blog banner

E-Cash (Electronic Cash)

Blog banner

How to Prepare Your Child for Their First Day of School?

Blog banner

Topic: Sessions in Operating system

Blog banner

KAHAWA TEA

Blog banner

Concurrency and Deadlocks

Blog banner

Article on IT development trends

Blog banner

Biometric Authentication and Privacy: Balancing Ethical Concerns

Blog banner

Confidence Building Activities for the New School Year

Blog banner

Scheduling in Operating Systems

Blog banner

Lifestyle of a photographer

Blog banner

RSA (Rivest-Shamir-Adelman) Algorithm

Blog banner

Direct memory access

Blog banner

Security issues

Blog banner

Mango Raisin Chutney (sweet mango raisin spread)

Blog banner

How storytelling Is Becoming the Secret Weapon of Modern Brands?

Blog banner

Understanding Gen Z: A Generation Facing Crisis and Potential

Blog banner

Next time you click on "Remind me later", think twice!

Blog banner

MUTUAL EXCLUSION

Blog banner

Linux

Blog banner

Sweet and Sour Mango Pickle (Gol Keri)

Blog banner