1
GATE CSE 2008
MCQ (Single Correct Answer)
+2
-0.6
Which of the following is NOT true of deadlock prevention and deadlock avoidance schemes?
A
In deadlock prevention, the request for resources is always granted if the resulting state is safe.
B
In deadlock avoidance, the request for resources is always granted if the resulting state is safe.
C
Deadlock avoidance is less restrictive than deadlock prevention.
D
Deadlock avoidance requires knowledge of resource requirements a priori.
2
GATE CSE 2008
MCQ (Single Correct Answer)
+2
-0.6
For a magnetic disk with concentric circular tracks, the seek latency is not linearly proportional to the seek distance due to
A
non-uniform distribution of requests
B
arm starting and stopping inertia
C
higher capacity of tracks on the periphery of the platter
D
use of unfair arm scheduling policies.
3
GATE CSE 2008
MCQ (Single Correct Answer)
+1
-0.3
The data blocks of a very large file in the Unix file system are allocated using
A
contiguous allocation
B
linked allocation
C
indexed allocation
D
an extension of indexed allocation.
4
GATE CSE 2008
MCQ (Single Correct Answer)
+2
-0.6
The P and V operations on counting semaphores, where s is a counting semaphore, are defined as follows:

P(s): s = s-1; 
if s < 0 then wait; 
V(s) : s = s-1; 
ifs <= 0 then wakeup a process waiting on s;
Assume that Pb and Vb the wait and signal operations on binary semaphores are provided. Two binary semaphores Xb and Yb are used to implement the semaphore operations P(s) and V(s) as follows:

  P(s): Pb (Xb);
        S = s - 1;
        if(s < 0){
          Vb(Xb);
          Pb(Yb);
        }
        Else Vb (Xb);
  V(s): Pb (Xb);
        S = s + 1;
        if(s <= 0) Vb(Yb);
        Vb(Xb);
The initial values of Xb and Yb are respectively
A
0 and 0
B
0 and 1
C
1 and 0
D
1 and 1
EXAM MAP
Medical
NEETAIIMS
Graduate Aptitude Test in Engineering
GATE CSEGATE ECEGATE EEGATE MEGATE CEGATE PIGATE IN
Civil Services
UPSC Civil Service
Defence
NDA
Staff Selection Commission
SSC CGL Tier I
CBSE
Class 12