0 votes 0 votes Gate Fever asked Nov 9, 2018 Gate Fever 405 views answer comment Share Follow See 1 comment See all 1 1 comment reply Shaijal Tripathi commented Nov 9, 2018 reply Follow Share What's the answer? Mine is coming 17.66 ms. 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes Average Turn Around Time is 17.66 ms Shaijal Tripathi answered Nov 9, 2018 • reshown Nov 9, 2018 by Shaijal Tripathi Shaijal Tripathi comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments Gate Fever commented Nov 9, 2018 reply Follow Share now I got it even i am convinced , correct answer is 19.66 see here u did the mistake:- at t=12; p3 needs to lock x,y but it cant lock x,y because they are already acquired by program p2, although program p2 has low priority but it has nothing to do with the lock , if a low priority program has acquired the lock then high priority cant snatch the items, however if both the programs wants CPU, then high priority would get cpu; hopu u got it; okay let me post the solution as well! 0 votes 0 votes Shaijal Tripathi commented Nov 9, 2018 reply Follow Share Yes, I got it now. Thank you :) This concludes that we can take functioning of lock as similar to semaphores....the process which has requested the lock first will be given the lock first. 0 votes 0 votes Gate Fever commented Nov 9, 2018 reply Follow Share exactly!! 0 votes 0 votes Please log in or register to add a comment.