SlideShare a Scribd company logo
1 of 12
- BY
BALASHANMUGI P
CHETHANA SREE R
MONA R
DHANUSH KUMAR K.S
PAGING
• Paging is a method or technique which is used for non-contiguous memory
allocation. It is a fixed-size partitioning theme (scheme).
• In paging, both main memory and secondary memory are divided into equal fixed-
size partitions.
• Paging is a memory management method accustomed fetch processes from the
secondary memory into the main memory in the form of pages.
• In paging, each process is split into parts where the size of every part is the same
as the page size.
4
Here are some important about paging in operating systems:
• Paging reduces internal fragmentation since memory is allocated in fixed-size blocks.
• Paging allows for more efficient use of memory since it enables memory to be allocated
on demand.
• Paging allows for protection and sharing of memory between processes.
• Paging can lead to external fragmentation, where memory is fragmented into small,
non-contiguous blocks, making it difficult to allocate large blocks of memory to a
process.
• Paging involves overhead due to the maintenance of the page table and the translation
of logical addresses to physical addresses
FEATURES OF PAGING
1. Mapping logical address to physical address. Page
size is equal to frame size.
2. Number of entries in a page table is equal to
number of pages in logical address space.
3. The page table entry contains the frame number.
4. All the page table of the processes are placed in
main memory.
5
SEGMENTATION
• Segmentation is another non-contiguous memory allocation scheme like
paging. like paging, in segmentation
• the process isn’t divided indiscriminately into mounted(fixed) size pages. It
is a variable-size partitioning theme. like paging, in segmentation,
secondary and main memory are not divided into partitions of equal size.
• The partitions of secondary memory area units are known as segments. The
details concerning every segment are hold in a table known as
segmentation table.
• Segment table contains two main data concerning segment, one is Base,
which is the bottom address of the segment and another is Limit, which is
the length of the segment.
Types of segmentation:
1. Virtual memory segmentation – Each process is divided into a number of segments, not
all of which are resident at any one point in time.
2. Simplesegmentation – Each process is divided into a number of segments, all of which
are loaded into memory at run time, though not necessarily contiguously.
There is no simple relationship between logical addresses and physical addresses in
segmentation.
SegmentTable – A table stores the information about all such segments and is called
Segment Table. It maps two-dimensional Logical address into one-dimensional Physical
address
The Logical Address is divided into:
•Segment number (s): Number of bits required to represent
the segment.
•Segment offset (d): Number of bits required to represent the
size of the segment.
It’s each table entry has:
Base Address: It contains the starting physical address where the
segments reside in memory.
Limit: It specifies the length of the segment.
In segmentation, the CPU generates a logical addressthat contains the Segment number and
segment offset.If the segment offsetis a smaller amount than the limit then the address called valid
address otherwise it throws miscalculation because the address is invalid.
ADVANTAGES OF SEGMENTATION
• No Internal fragmentation.
• Segment Table consumes less space in comparison to Page table in paging.
• As a complete module is loaded all at once, segmentation improves CPU utilization.
• The user’s perception of physical memory is quite similar to segmentation.
• The user specifies the segment size, whereas in paging, the hardware determines the
page size.
• Segmentation is a method that can be used to segregate data from security operations
DISADVANTAGES OF SEGMENTATION
•As processes are loaded and removed from the memory, the free memory space is broken into little pieces,
causing External fragmentation.
•Overhead is associated with keeping a segment table for each activity.
•Fragmentation: As mentioned, segmentation can lead to external fragmentation as memory becomes
dividedinto smaller segments.This can lead to wasted memory and decreasedperformance.
•Overhead: The use of a segment table can increase overhead and reduce performance. Each segment table
entry requires additional memory, and accessing the table to retrieve memory locations can increase the
time needed for memory operations.
•Complexity: Segmentation can be more complex to implement and manage than paging. In particular,
managing multiple segments per process can be challenging, and the potential for segmentation faults can
increase as a result.

More Related Content

Similar to os ppt.pptx

memory managment on computer science.ppt
memory managment on computer science.pptmemory managment on computer science.ppt
memory managment on computer science.pptfootydigarse
 
07-MemoryManagement.ppt
07-MemoryManagement.ppt07-MemoryManagement.ppt
07-MemoryManagement.ppthello509579
 
Paging +Algorithem+Segmentation+memory management
Paging +Algorithem+Segmentation+memory managementPaging +Algorithem+Segmentation+memory management
Paging +Algorithem+Segmentation+memory managementkazim Hussain
 
CSI-503 - 6. Memory Management
CSI-503 - 6. Memory Management CSI-503 - 6. Memory Management
CSI-503 - 6. Memory Management ghayour abbas
 
local_media3192961381667787861026781.pptx
local_media3192961381667787861026781.pptxlocal_media3192961381667787861026781.pptx
local_media3192961381667787861026781.pptxLyn B
 
Storage management
Storage managementStorage management
Storage managementAtul Sharma
 
381 ccs chapter6_updated(2)
381 ccs chapter6_updated(2)381 ccs chapter6_updated(2)
381 ccs chapter6_updated(2)Rabie Masoud
 
Memory management
Memory managementMemory management
Memory managementRasi123
 
contiguous memory allocation.pptx
contiguous memory allocation.pptxcontiguous memory allocation.pptx
contiguous memory allocation.pptxRajapriya82
 
Unit 4-Memory Management - operating systems.pptx
Unit 4-Memory Management - operating systems.pptxUnit 4-Memory Management - operating systems.pptx
Unit 4-Memory Management - operating systems.pptxamaira7348
 

Similar to os ppt.pptx (20)

UNIT-2 OS.pptx
UNIT-2 OS.pptxUNIT-2 OS.pptx
UNIT-2 OS.pptx
 
Segmentation in operating systems
Segmentation in operating systemsSegmentation in operating systems
Segmentation in operating systems
 
memory managment on computer science.ppt
memory managment on computer science.pptmemory managment on computer science.ppt
memory managment on computer science.ppt
 
07-MemoryManagement.ppt
07-MemoryManagement.ppt07-MemoryManagement.ppt
07-MemoryManagement.ppt
 
Memory Management
Memory ManagementMemory Management
Memory Management
 
Paging +Algorithem+Segmentation+memory management
Paging +Algorithem+Segmentation+memory managementPaging +Algorithem+Segmentation+memory management
Paging +Algorithem+Segmentation+memory management
 
CSI-503 - 6. Memory Management
CSI-503 - 6. Memory Management CSI-503 - 6. Memory Management
CSI-503 - 6. Memory Management
 
Chapter07_ds.ppt
Chapter07_ds.pptChapter07_ds.ppt
Chapter07_ds.ppt
 
UNIT IV.pptx
UNIT IV.pptxUNIT IV.pptx
UNIT IV.pptx
 
unit5_os (1).pptx
unit5_os (1).pptxunit5_os (1).pptx
unit5_os (1).pptx
 
local_media3192961381667787861026781.pptx
local_media3192961381667787861026781.pptxlocal_media3192961381667787861026781.pptx
local_media3192961381667787861026781.pptx
 
Storage management
Storage managementStorage management
Storage management
 
381 ccs chapter6_updated(2)
381 ccs chapter6_updated(2)381 ccs chapter6_updated(2)
381 ccs chapter6_updated(2)
 
Memory comp
Memory compMemory comp
Memory comp
 
Memory management
Memory managementMemory management
Memory management
 
Memory management
Memory managementMemory management
Memory management
 
Segmentation
SegmentationSegmentation
Segmentation
 
contiguous memory allocation.pptx
contiguous memory allocation.pptxcontiguous memory allocation.pptx
contiguous memory allocation.pptx
 
Memory management1
Memory management1Memory management1
Memory management1
 
Unit 4-Memory Management - operating systems.pptx
Unit 4-Memory Management - operating systems.pptxUnit 4-Memory Management - operating systems.pptx
Unit 4-Memory Management - operating systems.pptx
 

Recently uploaded

IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 

Recently uploaded (20)

IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 

os ppt.pptx

  • 1. - BY BALASHANMUGI P CHETHANA SREE R MONA R DHANUSH KUMAR K.S
  • 2. PAGING • Paging is a method or technique which is used for non-contiguous memory allocation. It is a fixed-size partitioning theme (scheme). • In paging, both main memory and secondary memory are divided into equal fixed- size partitions. • Paging is a memory management method accustomed fetch processes from the secondary memory into the main memory in the form of pages. • In paging, each process is split into parts where the size of every part is the same as the page size.
  • 3.
  • 4. 4 Here are some important about paging in operating systems: • Paging reduces internal fragmentation since memory is allocated in fixed-size blocks. • Paging allows for more efficient use of memory since it enables memory to be allocated on demand. • Paging allows for protection and sharing of memory between processes. • Paging can lead to external fragmentation, where memory is fragmented into small, non-contiguous blocks, making it difficult to allocate large blocks of memory to a process. • Paging involves overhead due to the maintenance of the page table and the translation of logical addresses to physical addresses
  • 5. FEATURES OF PAGING 1. Mapping logical address to physical address. Page size is equal to frame size. 2. Number of entries in a page table is equal to number of pages in logical address space. 3. The page table entry contains the frame number. 4. All the page table of the processes are placed in main memory. 5
  • 6. SEGMENTATION • Segmentation is another non-contiguous memory allocation scheme like paging. like paging, in segmentation • the process isn’t divided indiscriminately into mounted(fixed) size pages. It is a variable-size partitioning theme. like paging, in segmentation, secondary and main memory are not divided into partitions of equal size. • The partitions of secondary memory area units are known as segments. The details concerning every segment are hold in a table known as segmentation table. • Segment table contains two main data concerning segment, one is Base, which is the bottom address of the segment and another is Limit, which is the length of the segment.
  • 7.
  • 8. Types of segmentation: 1. Virtual memory segmentation – Each process is divided into a number of segments, not all of which are resident at any one point in time. 2. Simplesegmentation – Each process is divided into a number of segments, all of which are loaded into memory at run time, though not necessarily contiguously. There is no simple relationship between logical addresses and physical addresses in segmentation. SegmentTable – A table stores the information about all such segments and is called Segment Table. It maps two-dimensional Logical address into one-dimensional Physical address
  • 9. The Logical Address is divided into: •Segment number (s): Number of bits required to represent the segment. •Segment offset (d): Number of bits required to represent the size of the segment. It’s each table entry has: Base Address: It contains the starting physical address where the segments reside in memory. Limit: It specifies the length of the segment.
  • 10. In segmentation, the CPU generates a logical addressthat contains the Segment number and segment offset.If the segment offsetis a smaller amount than the limit then the address called valid address otherwise it throws miscalculation because the address is invalid.
  • 11. ADVANTAGES OF SEGMENTATION • No Internal fragmentation. • Segment Table consumes less space in comparison to Page table in paging. • As a complete module is loaded all at once, segmentation improves CPU utilization. • The user’s perception of physical memory is quite similar to segmentation. • The user specifies the segment size, whereas in paging, the hardware determines the page size. • Segmentation is a method that can be used to segregate data from security operations
  • 12. DISADVANTAGES OF SEGMENTATION •As processes are loaded and removed from the memory, the free memory space is broken into little pieces, causing External fragmentation. •Overhead is associated with keeping a segment table for each activity. •Fragmentation: As mentioned, segmentation can lead to external fragmentation as memory becomes dividedinto smaller segments.This can lead to wasted memory and decreasedperformance. •Overhead: The use of a segment table can increase overhead and reduce performance. Each segment table entry requires additional memory, and accessing the table to retrieve memory locations can increase the time needed for memory operations. •Complexity: Segmentation can be more complex to implement and manage than paging. In particular, managing multiple segments per process can be challenging, and the potential for segmentation faults can increase as a result.