P06

Description

- Response Time - Turnaround Time - Processing Time - Waiting Time - 3 Algorithms used in CPU scheduling - What are the advantages and disadvantages of various scheduling algorithms? - What is Starvation? - What is Monopolisation? - What is pre-emption?
Syabil Hafizdini
Flashcards by Syabil Hafizdini, updated more than 1 year ago
Syabil Hafizdini
Created by Syabil Hafizdini about 8 years ago
63
0

Resource summary

Question Answer
What is Response Time? - The time taken for the CPU to start processing the task from the time the task is introduced
What is Turnaround Time? - The time taken for the CPU to complete the task from the time the task is introduced
What is Processing Time? - The time taken for the task to be completed by the CPU
What is Waiting Time? - Turnaround Time - Processing Time = Waiting Time
What are the 3 Algorithms used in CPU scheduling? - First Come First Serve (FCFS) – Jobs that arrive first in the queue will get to be executed first. - Shortest Job First (SJF)– Job with the least amount of CPU processing time gets to be executed first - Round Robin (RR) – Time slice is used and all jobs get a fair share of the time slice to be executed by the CPU
What are the advantages and disadvantages of various scheduling algorithms? - The different algorithms perform differently depending on the job sequence. - In general, RR provides a low RT for all sequences, making RR the most responsive, WT and TT vary, but too much context switching RR will result in overheads - SJF may lead to starvation - FCFS depending on the sequence. It might result in monopolization of resources if a long job comes first.
What is Starvation? - Starvation: when a process never gets its chance to be executed although it is ready.
What is Monopolisation? - Monopolisation: when a long process receives unfair share of CPU time by holding on to the CPU and resulted in other processes can’t be executed
What is pre-emption? - The CPU will stop doing a task and complete the important task. So the important task's Response Time should be 0s.
Show full summary Hide full summary

Similar

Concepts in Biology Final Exam
mlszala
A-level French Vocabulary
Andrea Leyden
GCSE English Literature: Of Mice and Men
mia.rigby
ACT Quiz
Brad Hegarty
How did Hitler challenge and exploit the Treaty of Versailles 1933 - March 1938?
Leah Firmstone
The Cold War: An Overview_2
Andrea Leyden
Edexcel Additional Science Biology Topic 1
hchen8nrd
GCSE AQA Biology 2 Enzymes, Digestion & Enzyme Uses
Lilac Potato
The Rise of the Nazis
shann.w
“In gaining knowledge, each area of knowledge uses a network of ways of knowing.” Discuss this statement with reference to two areas of knowledge
Julianapabab
Blood MCQs Physiology PMU 2nd Year
Med Student