Operating System

1:

A file server uses a form of locking as a concurrency control technique. When a file is locked by a client, all attempts to use or lock the file by other clients are prevented by the server. A potential problem exists if a client requests a lock on a file and then crashes. This situation could result in the file being locked indefinitely. To prevent this from occurring, the file server starts a time whenever it sets a lock. If the timer runs out before the file is unlocked the server assumes that the client has crashed and releases the lock. Which of the following is (are) true of this strategy?

A.

It provides a solution to the problem of preventing indefinite lockout.

B.

It may result in interleaved access to a file by two or more clients.

C.

It will guarantee mutual exclusion.

D.

It will fail to guarantee the prevention of indefinite lockout

 

Answer : A

Explanation :

sailendra said: (5:45pm on Sunday 21st August 2016)
it will guarantee mutual exclusion also because if locks the file other process cannot get that file so i think it satisfy third option also

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.