Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Assignment 4 (CO4)

Course Name: Operating System


Course Code: BCS-401
PROGRAM: B.TECH (IVSEM)

ASSIGNMENT DATE: 02-07-2024

LAST DATE OF SUBMISSION: 05-07-2024 (After due date no assignment will be accepted
for evaluation)
Note: Attempt the entire question in a separate register only.

1) Consider a logical address space of eight pages of 1024 words, each mapped onto a physical memory
of 32 frames then :
i. How many bits are in a logical address?
ii. How many bits are in a physical address?

2) What do you mean by segmentation? Give the hardware implementation of segmentation.

3) On a system using paging and segmentation the virtual address space consists of up to 16 segments
where each segment can be up to 216 bytes long. The hardware pages each segment upto 512 byte
pages. How many bits in the virtual address specify the following?
i. Segment Number
ii. Page Number
iii. Offset with in page
iv. Entire virtual address

4) Consider the following reference string 1,2,3,4,2,1,5,6,2,1,2,3,7,6,3,2,1,2,3,6. How many page faults
will occur for:
i. FIFO
ii. LRU Page Replacement Algorithm
Assuming three and four frames in each case and frames are initially.

You might also like