Question

In: Computer Science

For the following processes, given the description, draw the Gantt chart and paste the picture in...

For the following processes, given the description, draw the Gantt chart and paste the picture in the answer doc. What is the waiting time and turnaround time of each process and what is the average waiting time and turnaround time.

Preemptive SJF

Process

AT

BT(millisecs)

P1

1

1

P2

0

2

P3

5

3

P4

4

4

P5

3

5

Solutions

Expert Solution

Answer:

Formula's we use in this question:

1.Completion Time: Time at which process completes its execution.

2.Turn Around Time (TAT):Time Difference between completion time and arrival time.

Turn Around Time = Completion Time – Arrival Time

3.Waiting Time (WAT): Time Difference between turn around time and burst time.
Waiting Time = Turn Around Time – Burst Time

Gantt Chart:

The waiting time and turnaround time of each process and average waiting time and turnaround time:

//Explanation:

Process P1: arrived at 1 ms service time:1 priority: 0 completed at 2: TATp1= 1 ms and WATA= 0 ms

Process p2: arrived at 0 ms, service time:2 priority: 0 completed at 4: TATp2= 4 ms and WATB= 2 ms

Process p3: arrived at 5 ms, service time:3 priority: 0 completed at 8: TATp3= 3 ms and WATC= 0 ms

Process p4: arrived at 4 ms, service time:4 priority: 0 completed at 12: TATp4= 8 ms and WATD= 4 ms

Process p5: arrived at 3 ms, service time:5 priority: 0 completed at 17: TATp5= 14 ms and WATE= 9 ms

First request arrived at: 0 ms

Last request completed at: 17 ms

Total service time for all processes = 15 ms

Average turnaround time (ATAT) = 6 ms

Average waiting time (AWAT) = 3 ms

// if you have any doubt please comment in the comment box ....


Related Solutions

Draw a Gantt chart for A Computerised Administrative System. It Is a new project for a...
Draw a Gantt chart for A Computerised Administrative System. It Is a new project for a computerised Human Resource Information system. The company is switching to paper less. A WBS has to be created/invented for the new project
Draw six Gantt charts that illustrate the execution of these processes using the following scheduling algorithms:
Draw six Gantt charts that illustrate the execution of these processes using the following scheduling algorithms: 
Develop a Gantt Chart based on Table below. On the same Gantt chart, use a legend...
Develop a Gantt Chart based on Table below. On the same Gantt chart, use a legend to show the project plan and the (actual) project progress. Discuss the significance of the two paths or what they mean to the project. Activity immediate predecessors normal time budget organizational unit percent complete A - 4 $90 U1 100 B A 2 $35 U2 100 C A 6 $75 U2 40 D B 3 $60 U1 80 E C 10 $80 U1 0...
Gantt chart for home renovation project
Gantt chart for home renovation project
Draw the payoff picture for a short position in the put option given in the following...
Draw the payoff picture for a short position in the put option given in the following problem---- 1 Draw the payoff picture at expiration for a long position in a put option that has a premium of $3.50 and a strike price of $35.
Draw the payoff picture for a short position in the call option given in the following...
Draw the payoff picture for a short position in the call option given in the following problem: Draw the payoff picture at expiration for a long position in a call option that has a premium of $1.75 and a strike price of $40.
Draw a picture of the bacterial growth curve chart. Label each section and describe what is...
Draw a picture of the bacterial growth curve chart. Label each section and describe what is occurring in each section.
Use a flow chart or draw a picture to describe how fusion peptides works. Using HIV...
Use a flow chart or draw a picture to describe how fusion peptides works. Using HIV as an example, describe the proteins involved and where the process occurs. Be sure to identify what "trigger" HIV senses that initiates membrane fusion.
can i have sample of gantt chart with resource loading
can i have sample of gantt chart with resource loading
Draw the PERT and Gantt (calendar) charts for the following list of activities and expected durations....
Draw the PERT and Gantt (calendar) charts for the following list of activities and expected durations. Identify the critical path and list the slack times (if any) for the activities. Activity Immediate Predecessor Duration A - 3 B - 3 C - 4 D A, B 5 E B, C 4 F D, E 2 G E 3 H F, G 5  
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT