Question: Suppose we have a system described below, please draw out its execution procedure under PIP and PCP respectively: The system has 6 tasks Task1~Task6, with




Suppose we have a system described below, please draw out its execution procedure under PIP and PCP respectively: The system has 6 tasks Task1~Task6, with original priority 18, 15, 12, 9, 6 and 3 respectively (smaller number represents higher priority) Task1, Task3 and Task5 share resource R1, Task2, Task4 and Task6 share resource R2. The ready time moment and behavior of each task are shown in the table Task Behavior Ready time momente 0 Taski- Task2- 2 Run for 1 time units; Request R1; Run for 4 time units; Release Rl; Run for 5 time units; End- Run for 1 time units; Request R2; Run for 4 time units; Release R2; Run for 4 time units; Endo The same as Taskl. The same as Task2. The same as Taskl. The same as Task2- Task3 42 72 Task4 Task5 Task6 10. 12- System execution under PIP 1 1 1 1 1 1 I 1 I 1 1 1 1 1 I 1 1 1 1 1 I 1 1 1 1 1 1 1 1 1 I 1 1 I 1 1 1 1 1 1 1 1 1 1 I I I 1 1 1 1 1 I 1 1 1 1 I 1 ! 1 1 1 1 1 1 I I 1 I 1 1 1 I I I 1 I 1 1 I 7 1 I 1 1 1 1 1 I I 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 I 1 1 1 1 I 1 1 1 1 1 I 1 1 1 1 1 1 1 I 1 1 1 1 1 1 I 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 I 1 1 1 1 1 1 1 1 I I 1 1 + 1 1 1 1 1 1 1 1 1 1 I 1 1 1 1 I 1 1 1 1 1 11 1 I 1 1 1 1 I 1 ! 1 I I 1 10 I 1 1 1 11 1 I 1 1 I I 1 15 1 1 1 1 16 1 1 1 1 2 3 4 5 6 7 8 9 11 12 13 14 17 Run with resource Ready Run without resource blocked System execution under PCP 1 1 1 I 1 I 1 1 1 1 1 1 1 1 1 1 1 1 1 1 I 1 1 1 1 1 1 I 1 1 1 1 1 1 1 1 I 1 I 1 I 1 I I I 1 1 1 1 1 1 1 1 1 1 1 I 1 I 1 1 1 1 1 I 1 1 1 1 1 1 1 I 1 1 1 1 I 1 1 I I I I 1 1 1 1 1 1 1 1 1 I 1 1 I 1 1 I 1 1 1 1 1 1 1 I 1 I 1 I 1 I 1 1 I 1 1 1 + 1 1 I 1 +- 1 1 1 I 1 1 1 I 1 1 1 1 1 1 1 1 I 1 I I 1 1 1 1 1 I 1 I 1 1 1 1 1 1 1 1 I I I 1 1 1 I I 1 1 1 1 1 + - 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 I 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 I 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 Ready blocked Run without resource Run with resource Suppose we have a system described below, please draw out its execution procedure under PIP and PCP respectively: The system has 6 tasks Task1~Task6, with original priority 18, 15, 12, 9, 6 and 3 respectively (smaller number represents higher priority) Task1, Task3 and Task5 share resource R1, Task2, Task4 and Task6 share resource R2. The ready time moment and behavior of each task are shown in the table Task Behavior Ready time momente 0 Taski- Task2- 2 Run for 1 time units; Request R1; Run for 4 time units; Release Rl; Run for 5 time units; End- Run for 1 time units; Request R2; Run for 4 time units; Release R2; Run for 4 time units; Endo The same as Taskl. The same as Task2. The same as Taskl. The same as Task2- Task3 42 72 Task4 Task5 Task6 10. 12- System execution under PIP 1 1 1 1 1 1 I 1 I 1 1 1 1 1 I 1 1 1 1 1 I 1 1 1 1 1 1 1 1 1 I 1 1 I 1 1 1 1 1 1 1 1 1 1 I I I 1 1 1 1 1 I 1 1 1 1 I 1 ! 1 1 1 1 1 1 I I 1 I 1 1 1 I I I 1 I 1 1 I 7 1 I 1 1 1 1 1 I I 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 I 1 1 1 1 I 1 1 1 1 1 I 1 1 1 1 1 1 1 I 1 1 1 1 1 1 I 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 I 1 1 1 1 1 1 1 1 I I 1 1 + 1 1 1 1 1 1 1 1 1 1 I 1 1 1 1 I 1 1 1 1 1 11 1 I 1 1 1 1 I 1 ! 1 I I 1 10 I 1 1 1 11 1 I 1 1 I I 1 15 1 1 1 1 16 1 1 1 1 2 3 4 5 6 7 8 9 11 12 13 14 17 Run with resource Ready Run without resource blocked System execution under PCP 1 1 1 I 1 I 1 1 1 1 1 1 1 1 1 1 1 1 1 1 I 1 1 1 1 1 1 I 1 1 1 1 1 1 1 1 I 1 I 1 I 1 I I I 1 1 1 1 1 1 1 1 1 1 1 I 1 I 1 1 1 1 1 I 1 1 1 1 1 1 1 I 1 1 1 1 I 1 1 I I I I 1 1 1 1 1 1 1 1 1 I 1 1 I 1 1 I 1 1 1 1 1 1 1 I 1 I 1 I 1 I 1 1 I 1 1 1 + 1 1 I 1 +- 1 1 1 I 1 1 1 I 1 1 1 1 1 1 1 1 I 1 I I 1 1 1 1 1 I 1 I 1 1 1 1 1 1 1 1 I I I 1 1 1 I I 1 1 1 1 1 + - 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 I 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 I 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 Ready blocked Run without resource Run with resource