adplus-dvertising
frame-decoration

Question

Consider the methods used by processes P1 and P2 for accessing their critical sections. The initial values of shared Boolean variables S1 and S2 are randomly assigned,

P1                                         P2
while (S1 = = S2);             while (S1 = = S2);
critical section                  critical section
S1 = S2;                              S1 = S2;

Which one of the following statements describes the properties achieved ?

a.

Mutual exclusion but not progress

b.

Progress but not mutual exclusion

c.

Neither mutual exclusion nor progress

d.

Both mutual exclusion and progress

Answer: (c).Neither mutual exclusion nor progress

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Consider the methods used by processes P1 and P2 for accessing their critical sections. The initial values of shared Boolean variables S1 and S2 are randomly assigned, P1...

Similar Questions

Discover Related MCQs

Q. On a disk with 1000 cylinders (0 to 999) find the number of tracks, the disk arm must move to satisfy all the requests in the disk queue. Assume the last request service was at track 345 and the head is moving toward track 0. The queue in FIFO order contains requests for the following tracks :
123, 874, 692, 475, 105, 376
(Assume SCAN algorithm)

Q. Dijkestra banking algorithm in an operating system, solves the problem of

Q. The multiuser operating system, 20 requests are made to use a particular resource per hour, on an average the probability that no request are made in 45 minutes is

Q. The maximum amount of information that is available in one portion of the disk access arm for a removal disk pack (without further movement of the arm with multiple heads)

Q. A file organization component VSAM file is

Q. A relationship between processes such that each has some part (critical section) which must not be executed while the critical section of another is being executed, is known as

Q. How many states can a process be in ?

Q. Virtual memory is

Q. Optical storage is a

Q. WINDOWS is a …………… operating.

Q. Page making process from main memory to disk is called

Q. A Dead-lock in an Operating System is

Q. Match the following:

Set-I
(a) Disk scheduling
(b) Batch processing
(c) Time sharing
(d) Interrupt processing

Set-II
1. Round-robin
2. SCAN
3. LIFO
4. FIFO

Codes :
    (a) (b) (c) (d)

Q. ………….. synchronizes critical resources to prevent dead lock.

Q. …………….. is one of pre-emptive scheduling algorithm.

Q. In order to allow only one process to enter its critical section, binary semaphore are initialized to

Q. Remote Computing Service involves the use of time sharing and …………..

Q. Applications-software

Q. At any given time Parallel Virtual Machine (PVM) has ……………. send buffer and …………… receive buffer.

Q. In the process management Round-robin method is essentially the pre-emptive version of …………