Professional Documents
Culture Documents
Operating System Sem II Pattern 2020 Endsem Exam May 2023 - Computer
Operating System Sem II Pattern 2020 Endsem Exam May 2023 - Computer
Operating System Sem II Pattern 2020 Endsem Exam May 2023 - Computer
u:v^V ^--vV,
•• •■;■' v-^ rU'
"'V,i
PAPER CODE
G.R. No. UZ-'Z^'^ ^^*7
•' **
> \ V
No.
and counting [4] C04 [Understand]
Q.l
semaphores with clear descriphon of their
ityiUs usability
iff
usaouity —^
and describe [61 C04 [Apply!
i|
Vilfcl
possible outcomes of the same.
O #inc!ude <stdio.h>
#include <assert.h>
#include<pthread.h>
■ 'I
h'vT.oy,
^ t /I
assert(rc==0);
printfC'main: end\n");
return 0;
OR
c) Consider the following snapshot of a system: [6] [ C04 [Apply]
P2 4 0 1 9 0 2
P3 0 2 0 7 5 3
n 1 1 2 1 1 2
P4
I) Calculate Need Matrix
II) Is the system in a safe state use Bankers
Algorithm