wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Paginng In OS

profile
ANUJ YADAV
Sep 08, 2024
0 Likes
0 Discussions
82 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

Malware

Blog banner

5 ways to save money on catering services in Mumbai

Blog banner

Memory management

Blog banner

Boxing

Blog banner

VIRTUAL MEMORY

Blog banner

E-Cash (Electronic Cash)

Blog banner

Modern Operating System

Blog banner

File management

Blog banner

City of Mumbai (Bombay):

Blog banner

Topic: Sessions in Operating system

Blog banner

Virtual memory

Blog banner

child Labour

Blog banner

objectives and functions of operating system

Blog banner

Routers

Blog banner

MORDERN UNIX SYSTEM

Blog banner

Why You Need 2FA (Two-Factor Authentication) On Your Email And Other Online Accounts

Blog banner

How Puppet Shows and Role Play Teach Empathy to Preschoolers

Blog banner

Knowledge Management in Continual Service improvement (CSI)

Blog banner

MODERN OPERATING SYSTEMS

Blog banner

A True Friendship

Blog banner

World’s rarest passport owned by 500 people.

Blog banner

Women Empowerment

Blog banner

Mumbai Metro 3

Blog banner

Mendeley (management software)

Blog banner

Threads and concurrency

Blog banner

Digital Balance: Keeping Children Mindful in the Screen Age

Blog banner

Data Science in Mental Health Prediction

Blog banner

Utilizing Data-Hiding and Retrieval Techniques in Cyber Forensics

Blog banner

Operating System Objectives and Functions

Blog banner

Volatile Memory & Non-Volatile Memory Explained

Blog banner

Is Your Password Complex Enough?

Blog banner

Data Visualization

Blog banner

MySQL

Blog banner

Memory Management

Blog banner

Festive Ethnic Wear Guide: Patola-Inspired Looks for Every Celebration

Blog banner

The Rise of Polo Tourism in the USA: How Travellers Are Blending Luxury Stays with Elite Sports

Blog banner

Session Hijacking

Blog banner

Malicious softwares

Blog banner

Fault Tolerance

Blog banner

ODOO

Blog banner

Why Moms Are Choosing Customised School Accessories Over Generic Products?

Blog banner

Celebrate Raksha Bandhan with Premium Dry Fruit Gift Hampers

Blog banner