0 votes 0 votes closed as a duplicate of: MadeEasy Subject Test: Operating System - Process Synchronization Operating System made-easy-test-series operating-system process-synchronization reader-writer + – jatinmittal199510 asked Jan 31, 2017 • closed Nov 30, 2019 by KUSHAGRA गुप्ता jatinmittal199510 665 views comment Share Follow See all 2 Comments See all 2 2 Comments reply Lucky sunda commented Feb 1, 2017 reply Follow Share 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 votes 1 votes jatinmittal199510 commented Feb 1, 2017 reply Follow Share @Lucky Thank you. 1 votes 1 votes Please log in or register to add a comment.