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

Advanced Persistent Threats (APTs)

Blog banner

World end

Blog banner

Way to make your meal healthier.

Blog banner

Data Analytics in Data Science

Blog banner

Memory Management

Blog banner

Process Description

Blog banner

The role of artificial intelligence in automating digital forensic analysis.

Blog banner

A Deep Dive

Blog banner

Wreck

Blog banner

Music

Blog banner

10 Alien Encounters and Abduction Stories

Blog banner

Introduction to Data Science: Life Cycle & Applications

Blog banner

Ransomware

Blog banner

Spotify

Blog banner

WomenEmpowerment

Blog banner

Traditional Unix System

Blog banner

The seven-step improvement process

Blog banner

Deadlock and Starvation

Blog banner

Mesh Topology

Blog banner

BharatPe

Blog banner

EVOLUTION OF MICROPROCESSOR

Blog banner

POSITIVE ATTITUDE IN LIFE

Blog banner

LTE Technology

Blog banner

Design in figma

?Why Social and Emotional Skills Matter More Than ABCs in Early Years?

Blog banner

semaphores in os

Blog banner

Direct Memory Access

Blog banner

Life of an army person

Blog banner

Starvation and Deadlock.

Blog banner

"The Benefits of Using GIS in Agriculture"

Blog banner

Hey Aryan here

Blog banner

Study of Sniffing Tools

Blog banner

Deadlock

Blog banner

What is Spyware?

Blog banner

Four Stalls Every Vegetarian Needs To Eat At Outside Vile Parle Station

Blog banner

Which Smartphone Company Has the Largest Market Share in India?

Blog banner

MY FIRST BLOG?

Blog banner

Solitary Play Activities for Preschoolers: Types and Benefits

Blog banner

MODERN OPERATING SYSTEM

Blog banner

How To Invest In Indian Stock Market @ BSE & NSE ~ Tutorial 3

Blog banner

Kernel in Operating System

Blog banner

I/O Management and Disk Scheduling

Blog banner