wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

MEMORY MANAGEMENT REQUIREMENT

profile
Krishna Johari
Aug 14, 2024
0 Likes
0 Discussions
230 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

What is HTML?

Blog banner

OS Assignment 3

Blog banner

10 Problems you face if you are an Otaku

Blog banner

Design Considerations for Disk Cache Management

Blog banner

Uber

Blog banner

File management

Blog banner

STARVATION

Blog banner

EdTech (Education Technology)

Blog banner

Jira Software

Blog banner

Street foods

Blog banner

ZOHO

Blog banner

The seven-step improvement process

Blog banner

Microsoft Windows Overview

Blog banner

AOL Mail

Blog banner

A buffer overflow

Blog banner

Hot Mango Pickle (Methiyu)

Blog banner

OS- Assignnment 1

Blog banner

What is metaverse?

Blog banner

Network Forensics

Blog banner

BENIFITS OF YOGA

Blog banner

THE ACTORS LIFE

Blog banner

A Statistical Analysis of Player Performance and their Value in cricket

Blog banner

Wiretapping

Blog banner

What Function Does SEO Serve in Digital Marketing?

Blog banner

Hacking Mobile Platforms

Blog banner

Title: Modern Operating Systems: Powering the Digital Era

Blog banner

EFT

Blog banner

The most common internet security threats

Blog banner

URL vs Domain

Blog banner

Routers

Blog banner

Introduction to Data Science: Life Cycle & Applications

Blog banner

rupee

Blog banner

Asana

Blog banner

INTRODUCTION TO C#

Blog banner

Fault Tolerance in an Operating System

Blog banner

Threads Concurrency: Mutual Exclusion and Synchronization

Blog banner

SmartData Collective: Data Science aur Analytics ki Duniya

Blog banner

Concurrency and memory

Blog banner

Emailing the merger document

Blog banner

Jamming Attacks in Network Security: Disrupting Communication Signals

Blog banner

Denial-of-Service and Distributed Denial-of-Service Attack Techniques

Blog banner

Fitness regime by Deepesh

Blog banner