Engineering
13.08.2021 20:37
196
482
8
Solved by an expert

Five batch jobs A through E arrive at a computer center in the order A to E at almost

Five batch jobs A through E arrive at a computer center in the order A to E at almost the same time. They have estimated running times of 6, 4, 1, 3, and 7 minutes. Their ( externally determined ) priorities are 3, 5, 2, 1, and 4, respectively, with 5 being the highest priority. For each of the following scheduling algorithms, determine the mean process waiting time. Ignore process switching overhead.
a) Round Robin ( assume quantum = 1 )
b) Priority scheduling
c) First-come first-served
d) Shortest job first
For a), assume that the system is multitasking, and that each job gets its fair share of the CPU. For b) through d) assume that only one job at a time runs, until it finishes. All jobs are completely CPU bound.
Show Answers
sihaya43
sihaya43
4,4(57 marks)

Explanation:

The Turnaround time is the amount of time that elapses between the job arriving and completing. We assume that all jobs arrive at time 0, the turnaround time will simply be the time that they complete.

Round Robin:

we assume that the time quantum of the scheduler is 1 second.The table below gives a break down of which jobs will be processed during each time quantum. A asterisk(*) indicates that the job completes during that quantum.

1   2   3   4   5   6   7   8   9   10   11   12   13   14   15   16   17   18   19   20   21   22   23   24   25   26   27   28   29    30

A  B  C   D  E  A  B   C* D  E    A    B    D   E    A   B   D*   E     A   B     E     A    B* E   A     E  A    E*  A A

C* = 8

D*=17

B*=23

E*=28

AVERAGE TURNAROUND = (8+17+23+28+30)/5 =106/5 = 21.2 MINUTES

B) PRIORITY SCHEDULING:

1-6       7-14        15-24      25-26        27-30

   

 B           E             A             C            D

     AVERAGETURNAROUND =(6+14+24+26+30)/5 = 100/5 = 20 MINUTES.

C)FCFS

1-10      11-16      17-18      19-22      23-30

 

   A            B              C            D              E

   

AVERAGE TURNAROUND =(10+16+18+22+30)/5 = 96/5=19.2 MINTUES

D)SJF

1-2        3-6         7-12         13-20      21-30

C           D            B               E                A

AVERAGE TURNAROUND - (2+6+12+20+30)/5 =70/5 =14 MINUTES.

middlegirlrule9453
middlegirlrule9453
4,5(91 marks)
You suck
Get better bud
I wish you did what you were asked
I’m disappointed

Popular Questions about the subject: Engineering

1. the act examination population 2. anxiety sample 3. 11th graders independent...
Engineering
06.01.2020 21:27
Hello, How would I find the angle of twist to a shaft with the: 10m long, 30...
Engineering
27.01.2021 08:49

New questions by subject

Nepal is a multi ethnic, religious and lingual country...
Social Studies
15.07.2020 22:03
How does posting a house policy where customers can view it support responsible...
Business
20.01.2020 20:02
How do you do this problem 6 boys to 8 girls what s the ratio...
Mathematics
12.04.2020 03:56
President wilson’s 14 points were largely unsuccessful in bringing about lasting...
History
10.02.2022 05:34
What is the definition of standard form?...
Mathematics
12.05.2021 10:52
Awireless (radio) transmission of data can only travel a short distance. true...
Computers and Technology
18.09.2020 15:08
You have 33 marbles besides one group of 33 marbles is it possible to divide...
Mathematics
01.01.2023 22:06
Find the inverse of each function (show work )...
Mathematics
13.10.2022 17:39
Which function is inverse of f(x) = -5x - 4?...
Mathematics
28.09.2022 11:12
To convert 4.6 yards to feet, what ratio would you multiply...
Mathematics
06.07.2021 19:02
#
#
#
#
# #

We expand our knowledge with many expert answers