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.
1. What is the difference between a Gantt chart and a PERT chart in the production...
1. What is the difference between a Gantt chart and a PERT chart in the production management? 2. How is the marketing concept tied to the relationship and social eras of marketing? 3. What are the Marketing mix and how does business apply them into the markets?
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.
1. Create a network diagram and project schedule (illustrated in a Gantt chart) from the following...
1. Create a network diagram and project schedule (illustrated in a Gantt chart) from the following set of tasks. Use the task number, duration, and dependencies of each task given and construct a schedule so that the project is completed in the least number of days possible. Include a management reserve of approximately 10%. Task Subject Duration Dependencies Slack (3 pts) 1.0 Project Kickoff 2 none 2.1 Install & Test Database Software 2 1.0 2.2 Configure & Test Database Web...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT