Table 1 shows that there are four jobs in the queue. Job 1 arived first, and 4 last. Their priority is given in shown in the middle column (1 is the lowest, and 4 is highest), and CPU time is shown in right column. For the following questions, please circle the correct answer from the candidate list (time unit: second). Table 1 Job # Priority CPU time (1) Using shortest-job-first scheduling algorithm, 1 30 turnaround time for Job 1 is 2 2 90 (a) 20 (b) 30 (c) 50 (d) 80 3 4 80 tumaround time for Job 2 is (a) 100 (b) 130 (c) (d) 250 3 50 170 tumaround time for Job 3 is (a) 100 (b) 130 (c) 150 (d) 160 tumaround time for Job 4 is (a) 30 (b) 50 (c) 60 (d) 80 average turnaround time is (a) 100 (b) 110 (c) 120 (d) 130 4,

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Table 1 shows that there are four jobs in the queue. Job 1 arived first, and 4 last. Their priority is given in shown in the
middle column (1 is the lowest, and 4 is highest), and CPU time is shown in right column. For the following questions,
please circle the correct answer from the candidate list (time unit: second).
Table 1
Job # Priority CPU time
(1) Using shortest-job-first scheduling algorithm,
1
30
tumaround time for Job 1 is
90
(a) 20
(b) 30
(c)
50
(d) 80
3
4
80
tumaround time for Job 2 is
(a) 100
(b) 130
(c)
(d) 250
4
50
170
tumaround time for Job 3 is
(a) 100
(b) 130
(c)
150
(d) 160
turnaround time for Job 4 is
(a) 30 (b) 5o
(c)
60
(d) 80
average turnaround time is
(a) 100 (6) 110
(c)
120
(d) 130
(2) Using priority scheduling algorithm,
(3) Using round-robin scheduling algorithm,
tumaround time for Job 1 is
tumaround time for Job 1 is
(a) 230
(b) 250
(c)
300
(d) 400
(a) 100
(b) 120
(c)
140
(d) 190
turmaround time for Job 2 is
turnaround time for Job 2 is
(a) 200
(b) 220
(c)
300
(d) 400
(a) 200
(b) 250
(c)
270
(d) 300
tumaround time for Job 3 is
turnaround time for Job 3 is
(a)
30
(b) 40
(c)
60
(d) 80
(a) 200
(b) 220
(c)
240
(d) 300
tumaround time for Job 4 is
turnaround time for Job 4 is
(a)
(b) 150
(c)
(d) 190
130
160
(a) 100
(b) 150
(c) 180
(d) 200
average turnaround time is
average turnaround time is
(a) 125
(b) 135
(c)
170
(d) 185
(a) 155.5
(b) 177.5
(c) 185.0
(d) 197.5
(1) When using shortest-job-first scheduling algorithm, what is the turnaround time
for Job 1, Job 2, Job 3, and Job 4? And what is the average turnaround time?
1,
2.
Transcribed Image Text:Table 1 shows that there are four jobs in the queue. Job 1 arived first, and 4 last. Their priority is given in shown in the middle column (1 is the lowest, and 4 is highest), and CPU time is shown in right column. For the following questions, please circle the correct answer from the candidate list (time unit: second). Table 1 Job # Priority CPU time (1) Using shortest-job-first scheduling algorithm, 1 30 tumaround time for Job 1 is 90 (a) 20 (b) 30 (c) 50 (d) 80 3 4 80 tumaround time for Job 2 is (a) 100 (b) 130 (c) (d) 250 4 50 170 tumaround time for Job 3 is (a) 100 (b) 130 (c) 150 (d) 160 turnaround time for Job 4 is (a) 30 (b) 5o (c) 60 (d) 80 average turnaround time is (a) 100 (6) 110 (c) 120 (d) 130 (2) Using priority scheduling algorithm, (3) Using round-robin scheduling algorithm, tumaround time for Job 1 is tumaround time for Job 1 is (a) 230 (b) 250 (c) 300 (d) 400 (a) 100 (b) 120 (c) 140 (d) 190 turmaround time for Job 2 is turnaround time for Job 2 is (a) 200 (b) 220 (c) 300 (d) 400 (a) 200 (b) 250 (c) 270 (d) 300 tumaround time for Job 3 is turnaround time for Job 3 is (a) 30 (b) 40 (c) 60 (d) 80 (a) 200 (b) 220 (c) 240 (d) 300 tumaround time for Job 4 is turnaround time for Job 4 is (a) (b) 150 (c) (d) 190 130 160 (a) 100 (b) 150 (c) 180 (d) 200 average turnaround time is average turnaround time is (a) 125 (b) 135 (c) 170 (d) 185 (a) 155.5 (b) 177.5 (c) 185.0 (d) 197.5 (1) When using shortest-job-first scheduling algorithm, what is the turnaround time for Job 1, Job 2, Job 3, and Job 4? And what is the average turnaround time? 1, 2.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Dynamic Multithreading
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education