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

OS Unit-4 Assignment

The document contains an assignment for an Operating Systems course with 4 questions. Question 1 asks about logical and physical address sizes for a memory system. Question 2 asks about segmentation and its hardware implementation. Question 3 asks about virtual address components for a system using paging and segmentation. Question 4 asks to calculate page faults for different page replacement algorithms given a reference string and memory frame sizes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

OS Unit-4 Assignment

The document contains an assignment for an Operating Systems course with 4 questions. Question 1 asks about logical and physical address sizes for a memory system. Question 2 asks about segmentation and its hardware implementation. Question 3 asks about virtual address components for a system using paging and segmentation. Question 4 asks to calculate page faults for different page replacement algorithms given a reference string and memory frame sizes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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