Peterson’s Solution in operating System

Peterson’s solution is restricted to two processes that alternate execution between their critical sections and remainder sections. The processes are numbered P0 and P1. For convenience, when presenting Pi , we use Pj to denote the other process; that is, j equals 1 − i. The structure of process Pi in Peterson’s solution Peterson’s solution … Read more