Which of the following statements is incorrect?
2022
Which of the following statements is incorrect?
- A.
Counting semaphore can be used to control access to a finite number of instances of a resource.
- B.
Reader–writer problem typically arises when several concurrent processes share the database.
- C.
Banker’s algorithm prevents deadlock.
- D.
A computer system is in a safe state only if there exists a safe sequence.
Attempted by 240 students.
Show answer & explanation
Correct answer: C
Banker’s algorithm does not prevent deadlock; it is a deadlock avoidance algorithm. It checks for a safe state before allocating resources.