recategorized by
133 views
1 votes
1 votes

Which of the following statements is/are correct? (Mark all the appropriate choices)

  1. A cycle in the wait-for graph is a necessary condition for deadlock to exist
  2. A cycle in the wait-for graph is a sufficient condition for deadlock to exist when only single instance is available per resource
  3. Testing for view serializability is NP-complete
  4. Testing for conflict serializability is NP-complete
recategorized by

1 Answer

Best answer
1 votes
1 votes
A cycle in the wait-for graph is a necessary and sufficient condition for deadlock to exist when only a single instance is available per resource.

Conflict serializability can be tested using topologial sort of the precedence graph which can be done in polynomial time.

Testing for view serializability is much more complex than testing for conflict serializability and is proved to be NP-complete (in NP class and Np-hard).
selected by
Answer:

Related questions