wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Paginng In OS

profile
ANUJ YADAV
Sep 08, 2024
0 Likes
0 Discussions
81 Reads

                         Paging in Operating Systems

Paging is a memory management scheme used by operating systems to eliminate the problem of fitting varying-sized processes into fixed-sized memory spaces. It allows a process's physical memory to be non-contiguous, effectively avoiding fragmentation and ensuring efficient use of memory.

 

How Paging Works :

Logical and Physical Memory Separation :

Paging separates the logical address space (the addresses used by programs) from the physical address space (the actual addresses in RAM). This means a program’s memory can be scattered across different locations in physical memory, while still appearing contiguous to the program itself.

 

Pages and Frames

 

Pages: The process’s logical memory is divided into fixed-sized blocks called pages.

Frames: The physical memory is also divided into blocks of the same size as the pages, called frames.

The OS loads pages from the logical address space into available frames in the physical address space.

Page Table

The operating system maintains a page table for each process. This table maps the logical pages to their corresponding frames in physical memory. When a program references a memory address, the CPU uses the page table to translate the logical address into a physical address.

 

Address Translation

Every memory access by a program involves two components: the page number and the page offset.

 

The page number identifies the specific page in the page table.

The page offset is the exact location within the page.

The operating system uses this information to find the corresponding physical address in the frame.



Comments ()


Sign in

Read Next

Game via listing method

Blog banner

Navigation With Indian Constellation(NavIC) by ISRO in Geographic Information Systems

Blog banner

Memory management

Blog banner

What is semaphore in operating system?

Blog banner

The Role of Data Provenance and Lineage in Modern Data Science

Blog banner

Process states

Blog banner

Why Oak Tree Hotel Is Arcadia’s Hidden Gem?

Blog banner

What is Influencer Marketing and its Trends

Blog banner

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

Blog banner

Layers Of Blockchain

Blog banner

Process State

Blog banner

Types of email

Blog banner

Service Validation and Testing during the Design Phase

Blog banner

KEAP MANAGEMENT SYSTEM

Blog banner

Deadlock and starvation

Blog banner

Evolution of Operating System

Blog banner

Maharashtrian culture: Tradition, Art, Food

Blog banner

Rock, Paper, Scissors Game in Common Lisp

Blog banner

MODERN OPERATING SYSTEMS

Blog banner

38_Network Sniffing Techniques_SBC

Blog banner

Big Data

Blog banner

Education: Key to your Prosperity

Blog banner

Unlocking Success: Mastering Google Ads Strategies

Blog banner

It's all about our Brain.- The Brain Metaphor

Blog banner

Assignment 2

Blog banner

21ST CENTURY PATRIARCHY

Blog banner

World’s rarest passport owned by 500 people.

Blog banner

The Laws of Karma

Blog banner

Memory Management

Blog banner

Travelling blog

Blog banner

Service transistion under difficult conditions

Blog banner

Deadlock and Starvation

Blog banner

Celebrate Diwali the Delicious Way with Meal Maharaj Catering

Blog banner

Pipedrive

Blog banner

Emailing the merger document

Blog banner

Importance of Morning Routines for Students During the Festive Season

Blog banner

Cyber Laws In India and Around the World

Blog banner

Cyber Security Standards

Blog banner

Password Generator - Lisp

Blog banner

Exploring Virtual Machines and Computer Forensic Validation Tools

Blog banner

Modern Operating System - Khush bagaria

Blog banner

The Golden Temple , Amritsar

Blog banner