Q8. (6 pts) Consider 2 concurrent processes P1 and P2 as in the following table. Show how to modify the pseudocode for P
Posted: Mon Jun 06, 2022 2:01 pm
Q8. (6 pts) Consider 2 concurrent processes P1 and P2 as in the following table. Show how to modify the pseudocode for P1 and P2 by using semaphores (minimum number) to ensure the printout to be 1 2 Y X Z. Hint: Specify the number of needed semaphores, their initial value(s), and how to use wait and signal. P1 Print 1 P2 Print 2 Print X Print Y Print Z