Synchronization mechanism


#1

Which of the below algorithms which implements synchronization mechanisms and satisfies all the four conditions such as Mutual Exclusion, Progress, Bounded Waiting and User Mode Execute?
(a) Random selection (b) TSL Algorithm © Peterson’s (d) All of the above


#2

I think it’s C since in random selection bounded waiting is not possible. And in B TSL lock is needed which need kernel mode access I think