x64 OS Internals Flashcards

Cover Imporant things in the lecture

1
Q

What is “round robin” algorithim?

A

The Round Robin algorithm is a CPU scheduling algorithm used in operating systems. It allocates CPU time to multiple processes in a circular manner, giving each process a small time slice to execute before moving to the next process. This ensures fairness in CPU allocation and prevents any single process from monopolizing the CPU for an extended period.

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

What is a “time quantum”?

A

A “time quantum” is a small unit of time used in CPU scheduling algorithms, such as Round Robin. It represents the maximum amount of time a process is allowed to run before it is preempted and moved to the back of the queue, allowing other processes to execute.

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

What is “process sleep”?

A

Process sleep refers to a state in which a process voluntarily relinquishes the CPU and enters a waiting state, typically to wait for some event or condition to occur. During this time, the process is inactive and does not consume CPU resources, allowing other processes to execute

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

Advatanges and Disadvantaged of round robin algorithim;

A

Advantages:

-Fairness: Ensures fair allocation of CPU time among processes.
Simple Implementation: Relatively straightforward to implement.
-Prevents Starvation: Prevents any single process from being blocked indefinitely, as each process is given a turn to execute.

Disadvantages:
-Inefficient for Long-Running Tasks: Not efficient for long-running processes or tasks with varying CPU requirements, as it may lead to frequent context switches.
-Low Priority Processes: Processes with low priority may experience increased response time, as they are constantly preempted by higher-priority processes.
-Short Time Quantum: If the time quantum is too short, there may be a significant overhead due to frequent context switches; if too long, responsiveness decreases

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