0 votes 0 votes Does Peterson’s solution to the mutual-exclusion problem shown in Fig. $2-24$ work when process scheduling is preemptive? How about when it is nonpreemptive? Operating System tanenbaum operating-system process-and-threads process-scheduling descriptive + – admin asked Oct 24, 2019 • edited Oct 30, 2019 by Lakshman Bhaiya admin 1.7k views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply `JEET commented Oct 29, 2019 reply Follow Share https://quizlet.com/53503150/operating-systems-flash-cards/ 0 votes 0 votes Ashutosh777 commented Aug 21, 2020 reply Follow Share @JEET “Consider the case in which 'turn' is initially 0 but process 1 runs first. It will just loop forever and never release the CPU” this is the example given in the link you shared but my doubt is how can ‘turn’ be 0 if process 1 runs first cause we are using the non preemptive scheduling,so the process which will set the turn variable will also be running and executing the CS. I think the counter example for this should be if both interested variable for P0 and P1 process are initially true then it will lead to deadlock if its non preemptive @srestha mam @shaik masthan sir please confirm 0 votes 0 votes RasMalai commented Oct 28, 2020 reply Follow Share Source : Tanenbaum 4e Peterson solution does not require strict alteration. But if it had strict alteration then there would have been problem. Source: https://www.doc.ic.ac.uk/~etheresk/synchronisation-tutorial-sol.pdf 1 votes 1 votes Please log in or register to add a comment.