0% found this document useful (0 votes)
11 views1 page

Assignment 4

The document outlines an assignment focused on operating system principles, specifically memory allocation techniques and page replacement algorithms. It includes tasks such as comparing first fit, best fit, and worst fit memory allocation methods, analyzing page faults using various algorithms, and explaining concepts like virtual memory and demand paging. Additionally, it requires a comparison of paging and segmentation, highlighting their advantages and disadvantages.

Uploaded by

arihanttyagi78
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views1 page

Assignment 4

The document outlines an assignment focused on operating system principles, specifically memory allocation techniques and page replacement algorithms. It includes tasks such as comparing first fit, best fit, and worst fit memory allocation methods, analyzing page faults using various algorithms, and explaining concepts like virtual memory and demand paging. Additionally, it requires a comparison of paging and segmentation, highlighting their advantages and disadvantages.

Uploaded by

arihanttyagi78
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Assignment-4

Principles of Operating Systems


CSE254
Section CS3J

1. Compare First fit, Best fit and Worst fit memory allocation techniques .Suppose the
memory segments with sizes: 100, 300,500, and 600. Fit the following processes with
size 250, 150, 420, and 510 in the free segment using first-fit, best-fit and worst fit?

2. Consider a system with 3 page frames and the following page reference string: 1, 2, 3,
1, 4, 3, 2, 1, 5. Using First-Come, First-Served (FCFS), Optimal, and Least Recently
Used (LRU) page replacement algorithms, Find the number of page faults that occur.

3. Explain the concept of virtual memory.

4. Compare and contrast paging and segmentation as memory management techniques.


Analyze the advantages and disadvantages of each approach in terms of
fragmentation, ease of implementation, and efficiency of memory access.

5. Define demand paging in memory management. What are the steps required to handle
a page fault in demand paging?

You might also like