Scheduling policies can easily be depicted with some strings of characters. For example, let's say we run Job A for 10-time units and then run job B for 8-time units. Dur string of this policy would look like this : AAAAAAAAAABBBBBBBB The priorities of the jobs can also be represented by a string of numbers. For example, for the above string we could say Job A had a priority of 2 and Job Ba priority of 1, which remained constant thro the processing of the jobs. Our Priority string would look like this where each number corresponded to the priority of the job at that time step: 222222222211111111 Answer the following questions related to the scenario described below: Scenario 1: Using multi-level feedback queue scheduling for Jobs A, B. Assume a 3-level MLFQ (high priority is 2, medium priority is 1, low priority is 0). Assume jobs A and B don't require any I/O each with a runtime of 10 time-units and both entering the system at T=0. Assume a quantum length at the highest priority level is 1, then 2 at the middle and 3 for the lowest priority. Finally Assume in cases where Round Robin is Applied Job A is initially chosen over B.

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
Solution
a) АВААВВАAAВВBAAABBBAB
b) 22111100000000000000
C)AAAAAABBBAAABBBABBBB
d)21100021100000000000
e) O (Response time = Time first executed - arrival itime = 0-0 = 0)
f) 16 (Turn Around time = completion time - arrival time = 16-0 = 16)
g) 0 (Response time = Time first executed - arrival itime = 6-6 = 0)
%3D
h) 14 (Turn Around time = completion time - arrival time = 20-6 = 14)
Transcribed Image Text:Solution a) АВААВВАAAВВBAAABBBAB b) 22111100000000000000 C)AAAAAABBBAAABBBABBBB d)21100021100000000000 e) O (Response time = Time first executed - arrival itime = 0-0 = 0) f) 16 (Turn Around time = completion time - arrival time = 16-0 = 16) g) 0 (Response time = Time first executed - arrival itime = 6-6 = 0) %3D h) 14 (Turn Around time = completion time - arrival time = 20-6 = 14)
Scheduling policies can easily be depicted with some strings of characters. For example, let's say we run Job A for 10-time units and then run job B for 8-time units.
Our string of this policy would look like this :
AAAAAAAAAABBBBBBBB
The priorities of the jobs can also be represented by a string of numbers. For example, for the above string we could say Job A had a priority of 2 and Job Ba priority of 1, which remained constant throu
the processing of the jobs. Our Priority string would look like this where each number corresponded to the priority of the job at that time step:
222222222211111111
Answer the following questions related to the scenario described below:
Scenario 1: Using multi-level feedback queue scheduling for Jobs A, B.
• Assume a 3-level MLFQ (high priority is 2, medium priority is 1, low priority is 0).
• Assume jobs A and B don't require any I/O each with a runtime of 10 time-units and both entering the system at T=0.
• Assume a quantum length at the highest priority level is 1, then 2 at the middle and 3 for the lowest priority.
• Finally Assume
cases where Round Robin is Applied Job A is initially chosen over B.
(a) What is the resultant scheduling string for Scenario 1? (Please don't include any spaces in your answer)
(b) What is the resultant scheduling Priority string for Scenario 1? (Please don't include any spaces in your answer)
Scenario 2: Assume the same scheduling parameters as the previous scenario but this time Job A enters at T=0 and Job B enters at T=6
(c) What is the resultant scheduling string for Scenario 2? (Please don't include any spaces in your answer)
(d) What is the resultant scheduling Priority string for Scenario 2? (Please don't include
spaces in your answer)
(e) What is the Response Time for Job A in Scenario 2?
(f) What is the Turnaround Time for Job A in Scenario 2?
(g) What is the Response Time for Job B in Scenario 2?
(h) What is the Turnaround Time for Job B in Scenario 2?
Transcribed Image Text:Scheduling policies can easily be depicted with some strings of characters. For example, let's say we run Job A for 10-time units and then run job B for 8-time units. Our string of this policy would look like this : AAAAAAAAAABBBBBBBB The priorities of the jobs can also be represented by a string of numbers. For example, for the above string we could say Job A had a priority of 2 and Job Ba priority of 1, which remained constant throu the processing of the jobs. Our Priority string would look like this where each number corresponded to the priority of the job at that time step: 222222222211111111 Answer the following questions related to the scenario described below: Scenario 1: Using multi-level feedback queue scheduling for Jobs A, B. • Assume a 3-level MLFQ (high priority is 2, medium priority is 1, low priority is 0). • Assume jobs A and B don't require any I/O each with a runtime of 10 time-units and both entering the system at T=0. • Assume a quantum length at the highest priority level is 1, then 2 at the middle and 3 for the lowest priority. • Finally Assume cases where Round Robin is Applied Job A is initially chosen over B. (a) What is the resultant scheduling string for Scenario 1? (Please don't include any spaces in your answer) (b) What is the resultant scheduling Priority string for Scenario 1? (Please don't include any spaces in your answer) Scenario 2: Assume the same scheduling parameters as the previous scenario but this time Job A enters at T=0 and Job B enters at T=6 (c) What is the resultant scheduling string for Scenario 2? (Please don't include any spaces in your answer) (d) What is the resultant scheduling Priority string for Scenario 2? (Please don't include spaces in your answer) (e) What is the Response Time for Job A in Scenario 2? (f) What is the Turnaround Time for Job A in Scenario 2? (g) What is the Response Time for Job B in Scenario 2? (h) What is the Turnaround Time for Job B in Scenario 2?
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Public key encryption
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.
Similar questions
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