Question 20

Which of the following statements is incorrect?

  1. ACounting semaphore can be used to control access to finite number of instances of a resource
  2. BReader writers problem typically arises when several concurrent processes share the data base
  3. CBanker's algorithm prevents dead lock
  4. DA computer system is in a safe state only if there exists a safe sequence
Show answerHide answer

Correct answer: (C) Banker's algorithm prevents dead lock

Explanation

The banker's algorithm avoids deadlock (by checking for a safe state); it does not prevent it. Prevention means removing one of the four necessary conditions.

From DSSSB TGT Computer Science Practice Set 2

This is question 20 of DSSSB TGT Computer Science Practice Set 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.