The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
229 views

asked in Operating System by Active (1.2k points)
retagged by | 229 views
+1
see..consider 5 readers execute the first statement rc=rc+1 and get pre-empted. So, now value of rc is 5. Now, if any of the readers go to database part, they will not execute down(db) statement because rc is not 1.

Now, one writer can also go in database.

So, option B is true.

But I am not able to find deadlock here.
+1
@Lucky Thank you.

Please log in or register to answer this question.



Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

39,824 questions
46,798 answers
140,963 comments
58,894 users