0 votes 0 votes https://gateoverflow.in/1319/gate2009-33 In above link , test-and-set is deadlock-free but https://gateoverflow.in/871/gate2002-18-a It is not deadlock-free here. It will be helpful if somebody clarify it : ) Operating System operating-system process-synchronization + – ejaz asked Jun 7, 2018 ejaz 734 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes I studied that test and set lock(TSL) is free from deadlock. Anil Ji answered Jun 7, 2018 Anil Ji comment Share Follow See all 8 Comments See all 8 8 Comments reply Show 5 previous comments MrPeppermint commented Jun 7, 2018 reply Follow Share https://drive.google.com/file/d/0By-VZ5fZo_6iOFJjUVBVNXZLVzA/view Check Q.66 The TEST-AND-SET function is atomic. It is deadlock free but not starvation free. 0 votes 0 votes ejaz commented Jun 7, 2018 reply Follow Share Thanks but I am referring the same question though. But solution to that question differ in the following link https://gateoverflow.in/871/gate2002-18-a But it says " TSL is not atomic" . You can look at it. 0 votes 0 votes MrPeppermint commented Jun 7, 2018 reply Follow Share Read the question properly. Question 66(iii). It is said in the question to assume that TSL is not atomic. 1 votes 1 votes Please log in or register to add a comment.