Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use the formula : turnaround time per process = Completion time arrival time waiting time = turnaround time burst time Q1. Say we have the

Use the formula :

turnaround time per process = Completion time arrival time

waiting time = turnaround time burst time

Q1. Say we have the process arrival time chart given below.

Draw a Gantt chart to illustrate how these processes would be scheduled using Round Robin (RR) and First-come First-Served (FCS) scheduling, and calculate the waiting time for each process. If when choosing a process to schedule next you could legally choose any of a number of processes, choose the one with the lowest-numbered name; i.e., choose pi over pj if i < j. Do not include context-switching time in your chart. Assume that the quantum is set to 5 time units.

Q3. Given a process scheduling table as below:

Process

Arrival Time

CPU Burst Time

P1

0

6

B

1

3

C

2

4

D

2

2

What is the average turnaround time for these processes with the Shortest Remaining Time First scheduling algorithm? Also calculate the average waiting time.

Q4. Consider a system which has CPU bound process that requires a burst time of 40 units. Using he multilevel feedback queue scheduling, calculate the number of times the process will be interrupted if the time quantum on the first queue is 2 units and it increases by 5 units in other queues.

Q5. Clearly mark the algorithms listed below that could result in starvation. (explain why) You can assume that each process will use the CPU for a finite burst before performing I/O.

  1. First-come, First-Served
  2. Round Robin (aka preemptive FCFS)
  3. Shortest Job First
  4. Shortest Remaining Time First (aka preemptive SJF)
  5. Priority
  6. Priority-based Round Robin (aka preemptive Priority)
  7. Multilevel Feedback Queue Scheduling

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional SQL Server 2000 Database Design

Authors: Louis Davidson

1st Edition

1861004761, 978-1861004765

More Books

Students also viewed these Databases questions

Question

Discuss the states of accounting

Answered: 1 week ago

Question

2. How will the team select a leader?

Answered: 1 week ago