2 votes 2 votes At a particular time of computation, the value of a counting semaphore is 10. Then 12 P operations and "x" V operations were performed on this semaphore. If the final value of semaphore is 7, x will be 8 9 10 11 Operating System ugcnetcse-july2018-paper2 operating-system process-synchronization + – Pooja Khatri asked Jul 13, 2018 recategorized Oct 15, 2018 by Pooja Khatri Pooja Khatri 2.0k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Current value of CS=10 CS-12+X=7 X=7+12-10=9 Option (2) is correct. shahidhope answered Jul 14, 2018 shahidhope comment Share Follow See 1 comment See all 1 1 comment reply Jeewanjot Kaur commented Oct 6, 2018 reply Follow Share from whr we get this formula?? 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes Answer is B 10-12+x=7 -2+x=7 x=9 Note: P represents Wait/down which means negative number and V represents signal/up which means positive number. rahul_vashisth answered Nov 26, 2023 rahul_vashisth comment Share Follow See all 0 reply Please log in or register to add a comment.