125k views
1 vote
Using the priority list T1, T6, T2, T7, T8, T5, T4, T3, Tg, schedule the project below with two processors.Tasks that must be completed firstTime Required34TaskT1T2T3T4T5T6T7T8T9423481111T1, T2T2T2, T3T4, T5T5, T6T6Task 6 is done by Select an answer starting at timeTask 8 is done by Select an answer starting at timeThe finishing time for the schedule is

User Cgohlke
by
5.6k points

1 Answer

3 votes

Firstly, let's make a diagram of prerequisites:

Comment: The number within parenthesis denotes the time required to complete the corresponding task.

Now, let's make our schedule based upon the priority list:


T_1,T_6,T_2,T_7,T_8,T_5,T_4,T_3,T_9

First, we need to know which are the ready tasks (tasks without prerequisites). By the diagram is clear that they are T_1, T_2, and T_3. Then, we need to look at their priority in the priority list. Between them, T_1 has the greatest urgency; this implies that it must be the first in processor 1 (P1). Now, in terms of urgency, T_2 follows T_1; let's assign it to the second processor (P2).

Comment: In the priority list, T_6 is before T_2, but we can't assign it now for it has prerequisites that have not been completed.

After three seconds, the first processor will be free. Let's check the (new) ready tasks having completed T_1. Note that T_1 doesn't unlock any task by itself. Then, the unique ready task now is T_3; let's assign it to the first processor. By similar reasoning, after four seconds the second processor will be free, and we're going to assign T_5 to it... AND SO ON.

I'm going to finish the schedule following these reasonings, and after that, we're going to discuss the answer to the questions.

Using the priority list T1, T6, T2, T7, T8, T5, T4, T3, Tg, schedule the project below-example-1
Using the priority list T1, T6, T2, T7, T8, T5, T4, T3, Tg, schedule the project below-example-2
User Wizzup
by
5.6k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.