intro Flashcards

1
Q

what is an operating system

A

this is a software that acts as an interface/ intermediary between the user and the computer hardware

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is process scheduling and why is it important in an operating system

A

this is the process of removing a running process in the CPU and selection of another process in the basis of another strategy.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

why is process scheduling important

A

(a) ensures that all resources o the CPU such as time, memory and i/o devices are shared equally among processes
(b) ensures that the computer has a fast response time
(c) ensures that every process is allocated enough time for execution in the CPU
(d) ensures that the CPU is busy that maximizing its utilization

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

define between short term, medium term and long term scheduling

A

short term scheduling selects the processes that are ready and allocates them to the CPU
long term scheduling determines which process is ready for administration into the system,
medium term removes the process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Explain the difference between preemptive and non-preemptive scheduling

A

preemptive scheduling is a type of scheduling where there can be an interruption during execution while non preemptive scheduling is a type of scheduling where no interruptions are allowed until the execution is done

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How does the First-Come-First-Serve scheduling algorithm work?

A

the process that requests the CPU first will be the first one to be executed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the advantages and disadvantages of FCFS scheduling?

A

advantages
(a) simple to understand
(b) no starvation

disadvantages
(a) convoy effect
(b)non preemptive
(c) dependence on arrival time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Discuss a scenario where FCFS might lead to the “convoy effect.”

A

if the process with a higher execution time arrives before the process with the lower execution time, that process will have to wait for the process with the longer execution time to be done.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Explain the Shortest Job Next (SJN) scheduling algorithm.

A

this is a type of scheduling where the shortest process with the shortest CPU burst time will be the first to be get in the CPU and be executed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the main challenge with SJN, and how is it addressed in the Shortest Remaining Time First (SRTF) variant?

A

the main challenge is it cannot predict the total scheduling time accurately. the SRTF addresses the issue by re evaluating the remaining time for each jobs in the ready queue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Discuss the concept of “starvation” in SJF scheduling.

A

this is a situation where a process is unable to make progress since it keeps on being bypassed by the scheduler in favour of other processes. this happens when a longer process keeps constantly being bypassed by shorter processes by the scheduler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How does the Round Robin scheduling algorithm work?

A

processes are placed in the ready queue where the CPU scheduler goes round allocating the processes in the CPU and giving each process a time slice in which it will be executed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Discuss the impact of the time quantum on the performance of Round Robin.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Compare Round Robin with FCFS and SJF in terms of turnaround time and response time.

A

TURNAROUND TIME
in FCFS the turn around time depends on the process arrival therefore the process that arrived first has a lower turnaround time
in SJF the turn around time is lower for the shortest process
in RR it depends with the time quantum, the lower the quantum time the lower the turnaround time
RESPONSE TIME
in FCFS it has a higher response time for the processes that arrive later
in SJF has a lower response time since it prioritizes shorter jobs
in RR the shorter the time quantum the faster the response time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Explain the priority scheduling algorithm

A

the processes are grouped in priority value and the process with the highest priority value is executed first

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the main drawback of basic priority scheduling, and how is it addressed in practice?

A

potential for priority inversion, a situation where a lower-priority process holds a resource that a higher-priority process needs. This can lead to delays in the execution of the higher-priority process, contrary to the intended priority scheduling policy. Priority inversion can impact system responsiveness and efficiency.

17
Q

Discuss the concept of aging in priority scheduling

A
18
Q

Describe the concept of multilevel queue scheduling.

A
19
Q

How are processes classified in a multilevel queue, and how is scheduling performed?

A
20
Q

What is the purpose of priority levels in a multilevel queue?

A
21
Q

Explain the multilevel feedback queue scheduling algorithm.

A
22
Q

How does the system adapt the priority of a process in this algorithm?

A
23
Q

Discuss the advantages of using feedback queues in scheduling.

A
24
Q
A
25
Q
A
26
Q
A