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

asked in Operating System by Active (1.2k points)
retagged by | 204 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.

Related questions



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

36,132 questions
43,577 answers
123,851 comments
42,815 users