Professional Documents
Culture Documents
BCA - I Semester
Subject: Operating Systems(BCA113B)
Unit-III Assignment
Date of Release:19/11/2022
Last Date of Submission: 29/11/2022
Part-A 20X1=20
1. A problem encountered in multitasking when a process is perpetually denied necessary
resources is called ____________
a) deadlock b) starvation c) inversion d) aging
2. Which one of the following is a visual (mathematical) way to determine the deadlock
occurrence?
a) resource allocation graph b) starvation graph c) inversion graph d) none of the
mentioned
3. A system is in the safe state if ____________
a) The system can allocate resources to each process in some order and still avoid a deadlock
a) in advance processes rarely know how much resource they will need
b) the number of processes changes as time progresses
c) resource once available can disappear
d) all of the mentioned
c) then the system is in a safe state d) Either deadlock exists or system is in a safe state
6. Memory management technique in which system stores and retrieves data from secondary
storage for use in main memory is called?
A. Fragmentation B. Frames
C. Paging D. Address Translation
18) With paging there is no ________ fragmentation.
20) In multiple instance RAG if contains circular wait than the system is in
a) deadlock b)not in deadlock c) May be in deadlock d) none
Part-B 5X2=10
Q.1 What are the different types of vertices in RAG. Explain with example.
Q.2 What are the different ways to recover from deadlock.
Q.3 Write short note on starvation.
Q.4 Discuss limitations of Banker’s algorithm.
Q.5 Differentiate between Starvation and Deadlock.
Part-C 5X6=30
Q.1 Show the use of multiple instance rag with a suitable example creating RAG table.
Q.2 What are deadlocks? What are necessary conditions for occurrence of a deadlock?
Q.3 How can deadlock be avoided ,explain with the help of an example.
Q.4. What is need matrix? Explain with the help of an example.
Q.5. Explain deadlock prevention strategies with all the approaches.
Part-D 2X10=20
Q1. Explain Banker’s algorithm with it’s advantages and disadvantages.
Let us consider the following snapshot for understanding the banker's algorithm:
Maximum Instances of resources of XYZ ( 10,6,7)
Processes Allotted XYZ Max XYZ Available XYZ
A0 112 433 ?
A1 212 322
A2 401 902
A3 020 753
A4 112 112
Q. 2. Explain deadlock detection for a single instance RAG and Multi instance RAG with the
help of examples.