cycle 6.18. Suppose there are two types of philosophers. One type always picks up his left fork first (a “lefty”), and the other type always picks up his right fork first (a “righty”) The behavior of a lefty is defined in Figure 6.12. The behavior of a righty is as follows: begin repeat think; wait (forkl (i+1) mod 5] ) wait (fork[i] ): eati signal fork[i] signal ( forkt (i+1) mod 5]) forever end;
OR
OR