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

asked in Operating System by Active (1.9k points)
retagged by | 170 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

+3 votes
0 answers
0 votes
1 answer
asked Feb 5, 2017 in Operating System by Samujjal Das Veteran (10.7k points) | 124 views
+2 votes
2 answers
asked Oct 16, 2016 in Operating System by Habibkhan Veteran (100k points) | 350 views

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

34,256 questions
40,959 answers
39,868 users