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

asked in Operating System by Active (1.2k points)
retagged by | 204 views
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.
@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
42,815 users