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

FIREWALL

Blog banner

Memory Management in Operating System

Blog banner

Deadlock in operating system

Blog banner

THE ACTORS LIFE

Blog banner

Deadlock

Blog banner

Security in Cloud Computing

Blog banner

I/O Buffering

Blog banner

5 ways to save money on catering services in Mumbai

Blog banner

Data Science in Predictive Analytics: Transforming Business Decision-Making

Blog banner

Service Design Principles

Blog banner

How to use GIT & GITHUB

Blog banner

Stephen Hawking : A Remarkable Physicist

Blog banner

File management

Blog banner

Mariana Trench: The deepest depths

Blog banner

CyberSecurity Color Wheel

Blog banner

Title: Modern Operating Systems: Powering the Digital Era

Blog banner

Why Inconel 625 and Monel 400 Remain Unbeatable in Refinery Applications?

Blog banner

10 Interesting facts you should know!!!

Blog banner

Top 3 Places To Stay In Vienna

Blog banner

How To Secure Operating Systems ?

Blog banner

"Can Lisp do Machine Learning?"

Blog banner

Microsoft Word

Blog banner

Jamming Attacks in Network Security: Disrupting Communication Signals

Blog banner

Virtual memory

Blog banner

Threads

Blog banner

Deadlock and starvation

Blog banner

Routers

Blog banner

Modern Operating System

Blog banner

Mumbai local ......

Blog banner

ARTICAL ON MANAGEMENT SYSTEM

Blog banner

Virtual Machine

Blog banner

Affiliate Marketing V/S Influencer Marketing

Blog banner

Multiprocessor scheduling

Blog banner

INTRANET

Blog banner

Deadlock

Blog banner

Sagar Parikrama

Blog banner

Defining youtubr

Blog banner

Memory managment

Blog banner

Multiprocessor and scheduling

Blog banner

Junk food vs healthy food

Blog banner

Multiple-Processor Scheduling in Operating System

Blog banner

Pipedrive

Blog banner