- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Difference Between Paging and Segmentation in OS
In this post, we will understand the difference between paging and segmentation in operating system −
Paging
The address space of a process is broken into fixed sized blocks.
These fixed size blocks are known as pages.
The operating system divides the memory blocks into pages.
The size of the page is determined based on the memory available.
This technique is quick in terms of memory access.
It can cause internal fragmentation since some pages would not be utilized as much as the other pages.
During the process of paging, a logical address is divided into page number and page offset.
A page table is used to store the page data.
This is how Paging works −
Segmentation
In this method, the address space of a process is broken down into varying sized blocks.
These varying sized blocks are known as sections.
A compiler is responsible in determining the size of the segment, the virtual address and the actual address.
The size of the section is determined by the user.
The process of segmentation is slower in comparison to paging.
It can result in external fragmentation since some memory blocks may not be used at all.
During this process, a logical address gets divided into a section number and a section offset.
A segmentation table can be used to store the segmentation data.
This is how Segmentation techniques works with Segment Map Table −
- Related Articles
- Difference between Paging and Segmentation
- Difference between Demand Paging and Segmentation
- Difference Between Paging and Swapping in OS
- Difference between Network OS and Distributed OS
- Difference Between Deadlock and Starvation in OS
- Difference Between Semaphore and Monitor in OS
- Difference Between Multitasking and Multithreading in OS
- Difference Between Buffering and Caching in OS
- Difference Between Interrupt and Polling in OS
- Difference Between Spooling and Buffering in OS
- Difference Between Virtual and Cache Memory in OS
- Difference Between Preemptive and Non-Preemptive Scheduling in OS
- Difference Between Long-Term and Short-Term Scheduler in OS
- Differentiate between OS and DBMS files and OS and DBMS buffer manager
- What are the differences between Client OS and Server OS?
