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

Assignment - Memory - Management

The document contains an assignment with 5 questions about memory management concepts. It provides definitions for PTBR, discusses the differences between internal and external fragmentation, and compares paging and segmentation. Key differences highlighted include memory size, speed, types of fragmentation, and how logical addresses are divided.

Uploaded by

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

Assignment - Memory - Management

The document contains an assignment with 5 questions about memory management concepts. It provides definitions for PTBR, discusses the differences between internal and external fragmentation, and compares paging and segmentation. Key differences highlighted include memory size, speed, types of fragmentation, and how logical addresses are divided.

Uploaded by

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

Assignment

Sayan Maiti
CSE/17/18

1. What is PTBR?

Ans: A page table base register (PTBR) holds the base address for the page
table of the current process. It is a processor register that is managed by the
operating system.

2. Which of the following is not true about memory management?


a) virtual memory is used only in multi-user systems
b) segmentation suffers from external fragmentation
c) paging suffers from internal fragmentation
d) segmented memory can be paged

Ans: b) segmentation suffers from external fragmentation

3. ii) If the number of bits in a virtual address of a program is 16 and the


page size is 0.5 K bytes, the number of pages in the virtual address space
is _____

Ans: 128

4. What is the difference between internal and external fragmentation?


Ans:

Key Internal Fragmentation External Fragmentation


Basic It occurs when fixed size It occurs when variable size
memory blocks are allocated memory space is allocated to
to the process. the process dynamically.

Occurrenc When the memory assigned to When the process is removed


e the process is slightly larger from the memory, it creates
than the memory requested the free space in the memory
by the process, it causes free causing external
space in the allocated block fragmentation.
causing internal
fragmentation.
Solution The memory must be Compaction, paging and
partitioned into variable sized segmentation.
blocks and assign the best fit
block to the process.

5. What is the difference between paging and segmentation?


Ans:

Key Paging Segmentation


Memory Size In Paging, a process address In Segmentation, a process address
space is broken into fixed size space is broken into varying sized
blocks called pages. blocks called sections.

Accountability Operating system divides the Compiler is responsible to calculate


memory into pages. the segment size, the virtual address
and the actual address.
Size Page size is determined by Section size is determined by the
available memory. user.

Speed Paging technique is faster in Segmentation is slower than paging.


terms of memory access.

Fragmentatio Paging can cause internal Segmentation can cause external


n fragmentation as some pages fragmentation as some memory
may go underutilized. block may not be used at all.
Logical During paging, a logical address is During segmentation, a logical
Address divided into page number and address is divided into section
page offset. number and section offset.
Data Storage Page table stores the page data. Segmentation table stores the
segmentation data.

You might also like