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

Unit_4_assignment OS

The document outlines several questions related to operating systems, including the need for virtual memory, Peterson's solution for the critical section problem, and a comparison of paging versus segmentation. It also addresses deadlock conditions and presents scenarios involving resource allocation and safety algorithms for systems with multiple processes and resource types. The questions require the creation of need matrices and the determination of safe states for given system snapshots.

Uploaded by

Aditya Hogade
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)
2 views

Unit_4_assignment OS

The document outlines several questions related to operating systems, including the need for virtual memory, Peterson's solution for the critical section problem, and a comparison of paging versus segmentation. It also addresses deadlock conditions and presents scenarios involving resource allocation and safety algorithms for systems with multiple processes and resource types. The questions require the creation of need matrices and the determination of safe states for given system snapshots.

Uploaded by

Aditya Hogade
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

Additional questions of Unit_IV

 Explain need of Virtual Memory.


 Describe Petersons solution for critical section problem.
 Compare and contrast the advantages and disadvantages of using paging versus segmentation
for memory management in an OS.
 Explain Deadlock with its necessary conditions

 Considering a system
with five processes P0 through P4 and three resources of type A, B, C. Resource type A has 10
instances, B has 5 instances and type C has 7 instances. Suppose at time t0 following snapshot of
the system has been taken

A) What will be the content of the Need matrix?

B) Is the system in a safe state? If Yes, then what is the safe sequence?

 Assum
e that there are 5 processes, P0 through P4, and 4 types of resources. At T0 we have the
following system state:

1)Create the need matrix.

2)Use the safety algorithm to test if the system is in a safe state.

You might also like