Question

2. The following processes have 4 CPU burst and 3 I/O bursts each. They are all of the same priority and they arrive in the order P1, P2, P3 at time 0 CPUO 10 CPU 10 CPUI/O 10 CPU 10 10 10 P1 P2 P3 10 10 10 a. Draw three Gantt charts illustrating the execution of these processes using FCFS, SJF, and RR (quantum- 1t) scheduling b. What is the turnaround time of each process for each of the scheduling algorithms in part (a)?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Preparatory Work for Drawing a Gantt Chart

A good job should be done in the preparatory work for a new project. You need to turn your project into a step-by-step plan and list the activities in a table. For each activity on your list, estimate how long it will take you to do that. How long are you going to be in the activity? Realistically, how many work can you do in a day? When will people be available?

Then you need to put activities in order. What is the first thing that you are going to do? What will you do next? What will you do after that? One by one, put everything in order. Make a note of any dependencies; that is, situations where you can not do one thing until another is started or finished. If the research assistant is going to do all the interviews, then the interviews can not start until the research assistant is hired.

When you finish the ordered list and know how long everything will take, you need to combine or divide the task for reducing the list without losing any specificity.

How to Draw a Gantt Chart

Start a Gantt chart drawing page from the Project Management category. On the left of the canvas, you will see a library containing a group of Gantt chart templates. Drag a template and drop on the canvas, and the Gantt Options dialogue will pop up automatically. You can set the date unit, date format, start and finish date in the dialogue. (Note: This dialogue could be reopened though Set Date button under Gantt Charttoolbar.)

Gantt Options General Date Unit Working Days Format Sunday Monday Tuesday Wednesday Thursday Friday Saturday Major Unit: Mont

Add a Task or Sub Task in Gantt Chart

You can right click on the mouse to add a task or a sub task.

4 Measure 5 material 6 Removed a Add Sub Task 2.0 d. 2.0 d. 4.0 d. 4.0 d. 19.0 d. 0.0% 0.0% 0.0% 0.0% 0.0% $Select All Transp

You can also use the quick buttons under the Gantt Chart toolbar to add a task, add a sub task, or delete a task.

Insert Add Sub Delete New Task Task

To change the column width, place the mouse cursor on the line between two cells and drag, just like the way excel does.

ID Task Name Start Finish Duration 2012/10/12012/107.0 d. 0.0 d 3 EConstruction preparation2012/10/10 2012/10/19 8.0 d 2012/1

Insert Columns

You can right click to insert a new column after the selected column. Choose the title of column from the pop-up dialogue box. For example, we can add a priority column.

Insert Gantt Column Start Date Finish Date L Duration Complete Priority Duratio 2015/5/1 2015/5/4 ◆◆◆◆ 1.5d. 2015/5/12015/5/1

Note:

  • You can change the priority by clicking on the symbol.
  • To hide a column, right click on a column and choose Hide Column.

How to Change the Task Bar

When double clicking the text editing box to input task start date and finish date, the progress bar will be updated automatically according to the new date.

Also, you can hover the cursor at the end of a bar, when the cursor changes as a two-way arrow (No.1), drag the bar to change the finish date.

Hover the cursor above a bar, and when the cursor changes as a four-way arrow (No.2), you can move the whole task bar. When the bar is moved, the start and finish date will change accordingly.

Input the task completed percentage, and the green progress bar will be upgraded automatically. Also, hover your cursor at the beginning of the bar, when the cursor turns as a two-way arrow and a percent symbol (No.3), drag the bar to change the complete percentage.

201 Finish Duration Complet Start 1 234567 2015/5/1 edit2015/5/4 2015/5/4 2015/5142015/5/6 2015/5/6 2015/5/146.0 d. 2015/5/6

Different Task Type in Gantt Chart

There are three different task types in the Gantt chart: Normal, Summary and Milestone.

1 47 10 1316 19 22 25 28 14 7 10 Normal task Summary task Milestone

You don't have to set the type explicitly. The Gantt chart software will process it automatically. The normal task has a completed percentage. You can set it as the above description. If a task has some sub tasks, the task will become a summary. A milestone task can be a diamond shape while you drag the two yellow control points together

Add a comment
Know the answer?
Add Answer to:
2. The following processes have 4 CPU burst and 3 I/O bursts each. They are all...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • QUESTION 1 Consider the following set of processes, with the length of the CPU burst time...

    QUESTION 1 Consider the following set of processes, with the length of the CPU burst time given in milliseconds: Process            Burst Time      Priority P1                    7                      5 P2                    2                      4 P3                    11                    3 P4                    9                      1 P5                    5                      3 The processes are assumed to have arrived in the order P1,P2, P3, P4, P5, all at time 0. a. Draw four Gantt charts that illustrate the execution of these processes using the following scheduling algorithms: FCFS, SJF, nonpreemptive priority (a smaller priority number implies a higher priority), and RR (quantum = 2). b. What...

  • Consider the following set of processes, with the length of the CPU-burst time given in milliseconds:...

    Consider the following set of processes, with the length of the CPU-burst time given in milliseconds: Process            Burst Time      Priority P1                    10                    3 P2                    1                     1 P3                    2                     3 P4                    1                     4 P5                    5                     2 The processes are assumed to have arrived in the order P1, P2, P3, P4, P5, all at time 0. a. Draw four Gantt charts illustrating the execution of these processes using FCFS, SJF (SPN), a...

  • Computer Science Help Instructions Consider the following set of processes, with the length of the CPU-burst...

    Computer Science Help Instructions Consider the following set of processes, with the length of the CPU-burst time given in milliseconds: Burst Time Process P1 P2 Priority 10 4 The processes are assumed to have arrived in the order P1, P2, P3, P4, P5, all at time 0. a. Draw four Gantt charts illustrating the execution of these processes using FCFS, a nonpreemptive priority (a smaller priority number implies a higher priority), and RR (quantum 1) scheduling. b. What is the...

  • Consider the following set of processes, with the length of the CPU burst given in milliseconds:

    Consider the following set of processes, with the length of the CPU burst given in milliseconds:ProcessBurst TimePriorityP1 54P231P312P472P543The processes are assumed to have arrived in the order P1 , P2 , P3 , P4 , P5 , all at time 0. a. Draw four Gantt charts that illustrate the execution of these processes using the following scheduling algorithms: FCFS, SJF, nonpreemptive priority (a larger priority number implies a higher priority), and RR (quantum = 2). b. What is the turnaround time of each...

  • Cpu scheduling

    Consider the following set of processes, with the length of the CPU burst times given in milliseconds:a. Draw four Gantt charts illustrating the execution of the processes using FCFS, Preemptive SJF, a non-preemptive priority, and a RR (quantum=2) scheduling. (30 pts)Note: for the RR consider that the arriving time is 0 for all processesb. What is the average waiting time of each process for of the above scheduling algorithms? (10 pts)P1 8 2 0 P2 5 36P3 1 1 8...

  • 8. Consider the following 5 processes in the ready queue: Process Burst Priority Arrival time n...

    8. Consider the following 5 processes in the ready queue: Process Burst Priority Arrival time n w P1 P2 w N P3 P P - W WE O P4 N P5 N A O Draw Gantt charts illustrating the execution of these processes for each of the following algorithms: (a) preemptive SJF, (b) RR (with quantum = 1), (C) FCFS, and (d) preemptive priority, and calculate the respective turnaround and waiting times.

  • Consider the following set of processes, with the length of the CPU-burst time given in milliseconds:

    Consider the following set of processes, with the length of the CPU-burst time given in milliseconds:Processburst TimePriorityP1103P211P323P414P552For each of the scheduling algorithms, FCFS, Shortest-Job-First (SJF, non-preemptive), Priority (smaller priority number implies higher scheduling priority), and RR (quantum = 1) do the following.Draw a Gantt chart to show how these processes would be scheduled.Give the turnaround time (total time from the first arrival into ready state until CPU-burst is completed) of each process.Give the waiting time (total time spent in the Ready state) of each process.Give...

  • Please answer the following question in C++ language Consider the following set of processes, with the...

    Please answer the following question in C++ language Consider the following set of processes, with the length of the CPU burst time given in milliseconds: Process            Burst Time      Priority P1. 7 5 P2 2 4 P3 11 3 P4 9 1 P5 5 3 The processes are assumed to have arrived in the order P1,P2, P3, P4, P5, all at time 0. a. Draw four Gantt charts that illustrate the execution of these processes using the following scheduling algorithms: FCFS, SJF, nonpreemptive...

  • Q.2] Answer the following questions Process Burst Time Priority P1 3 1 P2 8 3 P3...

    Q.2] Answer the following questions Process Burst Time Priority P1 3 1 P2 8 3 P3 2 4 P4 4 5 P5 5 1 (21 points) Consider the set of processes shown in the table above, with the length of the CPU-burst time given in milliseconds. The processes are assumed to have arrived in the order P5, P4, P3, P2 , and P1, all approximately at time 0. Draw three Gantt charts illustrating the execution of these processes using SJF,...

  • Assume that the three processes arrived in order: Processes                            CPU Burst Time P1  &n

    Assume that the three processes arrived in order: Processes                            CPU Burst Time P1                                           17 P2                                            6 P3                                            8 a.     Please draw the Gantt chart if FCFS scheduling is used. b.    Please calculate the average waiting time and average completion time under FCFS. You MUST show the calculation procedure. c.      Please draw the Gantt chart if Round Robin is used. d.    Please calculate the average waiting time and completion time under RR with q = 3. You MUST show the calculation...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT