0% found this document useful (0 votes)
8 views

Dhroov 221070076 Assignment9

Bsjsjskdf

Uploaded by

dhruuvd
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Dhroov 221070076 Assignment9

Bsjsjskdf

Uploaded by

dhruuvd
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Name - Dhroov S.

WaddDesai
Reg_no - 221070076

ASSIGNMENT - 9

AIM -
To implement paging technique.

THEORY -
The paging technique is a memory management scheme used by OS to manage memory
allocation for processes. It allows a computer to allocate memory in fixed-size blocks
called "pages," which are typically smaller than the total size of physical memory.

The paging technique involves dividing both the physical memory (RAM) and the logical
memory (used by processes) into fixed-size blocks. These blocks in physical memory are
called "frames," while those in logical memory are called "pages." The size of a page is the
same as the size of a frame.

When a process requests memory, the operating system allocates memory for the process
in terms of pages. The pages do not need to be contiguous in physical memory; they can
be scattered across different frames. The operating system maintains a data structure
called a page table to keep track of the mapping between logical pages and physical
frames.

Paging provides several benefits, including:


1. Efficient memory utilization: Paging allows for more efficient memory usage
because it allows processes to use memory space more flexibly. Processes do not need
to be loaded into contiguous blocks of memory.
2. Simplified memory management: Paging simplifies memory management for
the operating system since it does not need to manage contiguous blocks of memory
for each process.
3. Memory protection: Paging provides a level of memory protection by enforcing
access permissions on a per-page basis. This helps prevent processes from accessing
memory that they are not authorized to access.

Overall, paging is a fundamental technique used in modern operating


systems to efficiently manage memory allocation and provide memory
protection for processes.

CODE -
OUTPUT -
CONCLUSION-
In this experiment we have implemented the paging technique to simulate
memory allocation and management in an Operating System.

You might also like