answersLogoWhite

0

In segmentation, the address space is typically divided into a preset number of segments like data segment (read/write), code segment(read-only), stack(read/write) etc. And the programs are divided into these segments accordingly. Logical addresses are represented as tuple <segment, offset>.

While with paging, the address space is divided into a sequence of fixed size units called "pages". And logical addresses take the form of a tuple <page, offset>.

Each of these techniques offer several benefits e.g., segmentation offers better security since the segments are pre-defined and we can avoid spurious reads/writes at the time of address translations etc.

On the other hand, paging helps reduce fragmentation and ensures better memory management.

So, most modern operating systems employ a combination of both these techniques for their memory management.

User Avatar

Wiki User

13y ago

Still curious? Ask our experts.

Chat with our AI personalities

MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
EzraEzra
Faith is not about having all the answers, but learning to ask the right questions.
Chat with Ezra

Add your answer:

Earn +20 pts
Q: Explain the difference between page and segment?
Write your answer...
Submit
Still have questions?
magnify glass
imp