CPU Scheduling in Operating Systems: Turnaround Time Quiz
20 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

In CPU scheduling, Turn Around Time (TAT) is calculated as Completion time (CT) – Arrival time (AT). Solution: Waiting Time (WT) = Turnaround time (TAT) – Burst time (BT). Average Turnaround Time = Turnaround Time / # of processes.

The

Process ID Completion time Turnaround time P1 9 17 9-4=5 17 - 6 = 11 5–5=0 11 – 4 = 7 3 19 3–0=3 19 – 6 = 13 3–3=0 13 – 2 =11 P2 P3 P4 Waiting time P5 13 13 – 5 = 8 8–4=4 ______ Turnaround Time = (5 + 11 + 3 + 13 + 8) / 5 = 40 / 5 = 8 milliseconds ______ Waiting Time = (0 + 7 + 0 +1 + 4) / 5 = 22 / 5 = 4.4 milliseconds Soha A.

Average

Mohamed P1 3 4 P5 9 P4 P2 13 17 19 Lecture 04: CPU Scheduling CS 206: Operating Systems ▪ Turn Around Time (TAT) = Completion time (CT) – Arrival time (AT) Solution: ▪ Waiting Time (WT) = Turnaround time (TAT) – Burst time (BT) ▪ _______ Turnaround Time = Turnaround Time / # of processes

Average

Process ID Completion time Turnaround time P1 9 17 9-4=5 17 - 6 = 11 5–5=0 11 – 4 = 7 3 19 3–0=3 19 – 6 = 13 3–3=0 13 – 2 =11 P2 P3 P4 Waiting time P5 13 13 – 5 = 8 8–4=4 Average _______ Time = (5 + 11 + 3 + 13 + 8) / 5 = 40 / 5 = 8 milliseconds

<p>Turnaround</p> Signup and view all the answers

Mohamed P1 3 4 P5 9 P4 P2 13 17 19 Lecture 04: CPU Scheduling CS 206: Operating Systems ▪ _______ Turn Around Time (TAT) = Completion time (CT) – Arrival time (AT) Solution: ▪ Waiting Time (WT) = Turnaround time (TAT) – Burst time (BT)

<p>Average</p> Signup and view all the answers

In CPU scheduling, Turn Around Time (TAT) is calculated as Completion time (CT) – Arrival time (AT). Solution: Waiting Time (WT) = Turnaround time (TAT) – Burst time (BT). ______ Turnaround Time = Turnaround Time / # of processes.

<p>Average</p> Signup and view all the answers

_______ Turn Around Time (TAT) = Completion time (CT) – Arrival time (AT)

<p>Turn</p> Signup and view all the answers

Turn Around Time (TAT) = Completion time (CT) – Arrival time (AT) Solution: Waiting Time (WT) = Turnaround time (TAT) – Burst time (BT) _______ Turnaround Time = Turnaround Time / # of processes

<p>Average</p> Signup and view all the answers

Throughput, Turnaround time, and CPU utilization are important criteria in CPU scheduling to optimize _______ performance.

<p>system</p> Signup and view all the answers

Processes in main memory are scheduled based on algorithms to achieve better CPU utilization and reduce _______.

<p>latency</p> Signup and view all the answers

Scheduling is done so as to ____________ a) increase CPU utilization b) decrease CPU utilization c) keep the CPU more idle d) none of the mentioned

<p>increase CPU utilization</p> Signup and view all the answers

In CPU scheduling, Turn Around Time (TAT) is calculated as Completion time (CT) – Arrival time (AT). Solution: Waiting Time (WT) = Turnaround time (TAT) – Burst time (BT). Average _______ Time = (5 + 11 + 3 + 13 + 8) / 5 = 40 / 5 = 8 milliseconds

<p>Turnaround</p> Signup and view all the answers

______ Turn Around Time (TAT) = Completion time (CT) – Arrival time (AT) Solution: ▪ Waiting Time (WT) = Turnaround time (TAT) – Burst time (BT)

<p>Turn</p> Signup and view all the answers

______ Waiting Time = (0 + 7 + 0 +1 + 4) / 5 = 22 / 5 = 4.4 milliseconds Soha A. Mohamed

<p>Average</p> Signup and view all the answers

Turn Around Time (TAT) = Completion time (CT) – Arrival time (AT). Solution: Waiting Time (WT) = Turnaround time (TAT) – Burst time (BT) _______ Turnaround Time = Turnaround Time / # of processes

<p>Average</p> Signup and view all the answers

In CPU scheduling, Turn Around Time (TAT) is calculated as Completion time (CT) – Arrival time (AT). Solution: Waiting Time (WT) = Turnaround time (TAT) – Burst time (BT). Average _______ Time = Turnaround Time / # of processes.

<p>Turnaround</p> Signup and view all the answers

Process ID Completion time Turnaround time P1 9 17 9-4=5 17 - 6 = 11 5–5=0 11 – 4 = 7 3 19 3–0=3 19 – 6 = 13 3–3=0 13 – 2 =11 P2 P3 P4 Waiting time P5 13 13 – 5 = 8 8–4=4 Average _______ Time = (5 + 11 + 3 + 13 + 8) / 5 = 40 / 5 = 8 milliseconds.

<p>Turnaround</p> Signup and view all the answers

Mohamed P1 3 4 P5 9 P4 P2 13 17 19 Lecture 04: CPU Scheduling CS 206: Operating Systems ▪ _______ Turn Around Time (TAT) = Completion time (CT) – Arrival time (AT) Solution: ▪ Waiting Time (WT) = Turnaround time (TAT) – Burst time (BT).

<p>Average</p> Signup and view all the answers

The formula for Waiting Time (WT) in CPU scheduling is Turnaround time (TAT) – Burst time (BT). Average _______ Time = Turnaround Time / # of processes.

<p>Turnaround</p> Signup and view all the answers

In the context of CPU scheduling, the purpose of calculating Turn Around Time (TAT) is to measure the time taken from _______ to completion of a process.

<p>arrival</p> Signup and view all the answers

More Like This

Use Quizgecko on...
Browser
Browser