CPU Scheduling in Operating Systems: Turnaround Time Quiz

PeerlessParody avatar
PeerlessParody
·
·
Download

Start Quiz

Study Flashcards

20 Questions

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

Turnaround

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)

Average

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.

Average

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

Turn

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

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

system

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

latency

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

increase CPU utilization

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

Turnaround

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

Turn

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

Average

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

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.

Turnaround

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.

Turnaround

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).

Average

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

Turnaround

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.

arrival

Test your knowledge on CPU scheduling in operating systems by answering questions related to turnaround time. This quiz is based on Lecture 04 of CS 206: Operating Systems by Professor Mohamed Soha.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

Use Quizgecko on...
Browser
Browser