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

Modern operating system

Blog banner

How to insert contacts in zoho crm using php

Blog banner

Precision-Recall in Data Science

Blog banner

Privacy in Social Media and Online Services

Blog banner

Direct Memory Access

Blog banner

Data Lake

Blog banner

Landslide Hazard

Blog banner

Cyber Forensic in the Banking sector

Blog banner

IT GOVERNANCE

Blog banner

Hello World

Blog banner

Python as a tool for Data science task & project

Blog banner

Swiggi

Blog banner

Importance of Website

Blog banner

Memory heirachy (Operating system)

Blog banner

Process states

Blog banner

Memory Management

Blog banner

Benefits of Yoga

Blog banner

The Psychology of Diversity, Equity & Inclusion: How Inclusive Workplaces Boost Productivity

Blog banner

'Positivity in life'

Blog banner

AutoML: The Future of Automated Data Science

Blog banner

Partnership in Learning: How Parent Involvement Shapes a Child’s Early Education

Blog banner

new blog

Blog banner

Having passion in life

Blog banner

Introduction to GIS

Blog banner

Cybersecurity Standards for Automotive

Blog banner

Smartsheet

Blog banner

Super Garlicky Tomato Soup with Smashed White Beans

Blog banner

Deadlock in operating system

Blog banner

Retiring ISS

Blog banner

"Can Lisp do Machine Learning?"

Blog banner

A Review on Data Acquisition in Cyber Forensics

Blog banner

WAKE UP ITS FOOD o'CLOCK...!!!!!

Blog banner

Deadlock and Starvation

Blog banner

Kernel in Operating System

Blog banner

What is semaphore in operating system?

Blog banner

Microsoft powerpoint presentation

Blog banner

Importance of self defence for girls

Blog banner

MEMORY MANAGEMENT REQUIREMENT

Blog banner

PROCESS STATES OF OPERATING SYSTEM

Blog banner

A-B-C of Networking: Part-1 (Basics)

Blog banner

Technical SEO : Total Guide

Blog banner

What is Data, Information and Knowledge?

Blog banner