Scheduling Flashcards

Know the terms used to understand how CPU scheduling is done

1
Q

What is the CPU-I/O burst cycle?

A

The recurring pattern where a process alternates between performing CPU-bound tasks and I/O-bound tasks.

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

What are CPU-bound processes?

A

Processes that spend more time in CPU bursts, such as simulations and video processing.

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

What are I/O-bound processes?

A

Processes that spend more time in I/O bursts, such as file copying and database queries.

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

What is preemptive scheduling?

A

A CPU scheduling approach where a running process can be forcibly interrupted by the operating system.

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

What is non-preemptive scheduling?

A

A CPU scheduling approach where a running process cannot be interrupted until it completes its CPU burst.

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

What is the role of a dispatcher?

A

A component of the CPU scheduler that performs the actual switching between processes.

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

What is the function of a dispatcher?

A

Switching context, switching to user mode, and going to the location of the user program.

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

What is dispatch latency?

A

The time that the dispatcher takes to stop a process and to start another running.

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

What are the scheduling criteria?

A

CPU utilization, throughput, turnaround time, waiting time, and response time.

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

What is the first come first served scheduling algorithm?

A

A non-preemptive scheduling method where processes are executed in the order they arrive.

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

What is the shortest job first scheduling algorithm?

A

A strategy that selects the process with the smallest execution time next; it can be implemented in both non-preemptive and preemptive forms.

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

What is the round robin scheduling algorithm?

A

A preemptive scheduling technique where each process is given a fixed time slice in cyclic order.

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

What is the priority scheduling algorithm?

A

A method where processes are scheduled based on priority levels, with higher-priority processes executed first.

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

What is aging in scheduling?

A

A technique used to gradually increase the priority of waiting processes to prevent starvation.

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

What is quantum size in round robin scheduling?

A

The fixed time duration allocated to each process, affecting responsiveness and context-switching overhead.

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

What is the multilevel queue scheduling algorithm?

A

A scheduling approach that partitions the ready queue into multiple separate queues based on process characteristics.

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

What are system processes?

A

Processes that perform essential operating system functions and typically operate with elevated privileges.

18
Q

What are interactive processes?

A

Processes that require immediate user interaction and are designed to provide a fast response.

19
Q

What are interactive editing processes?

A

Processes dedicated to user-interactive editing tasks, necessitating high responsiveness to user inputs.

20
Q

What are batch processes?

A

Processes that are collected and executed without interactive user involvement.

21
Q

What are student processes?

A

Processes typically associated with educational environments or learning simulations.

22
Q

What is the multilevel feedback queue scheduling algorithm?

A

An adaptive scheduling method that allows processes to move between multiple queues based on execution characteristics.

23
Q

What is thread scheduling?

A

The method by which an operating system decides which thread gets CPU time at any given moment.

24
Q

What is process contention scope (PCS)?

A

A scheduling mechanism where threads compete for CPU resources within the scope of a single process.

25
Q

What is system contention scope (SCS)?

A

A scheduling mechanism where threads compete for CPU time across all processes in the system.

26
Q

What is symmetric multiprocessor scheduling?

A

A scheduling approach where all processors share a single ready queue, and the OS distributes tasks dynamically.

27
Q

What is asymmetric multiprocessor scheduling?

A

A scheduling approach where one processor manages all scheduling decisions while others execute tasks.

28
Q

What is processor affinity?

A

A scheduling technique where a process or thread is bound to a specific CPU or set of CPUs.

29
Q

What is soft affinity?

A

An OS scheduler tries to keep a process on the same CPU but does not strictly enforce it.

30
Q

What is hard affinity?

A

Enforces a strict policy where a thread or process is only allowed to run on specific CPUs.

31
Q

What is load balancing?

A

A scheduling technique used in multiprocessor systems to ensure efficient resource utilization.

32
Q

What is push migration?

A

A load balancing technique where the OS actively pushes tasks from a busy CPU to a less-loaded CPU.

33
Q

What is pull migration?

A

A load balancing technique where an idle CPU pulls tasks from a heavily loaded CPU.

35
Q

Job Queue

A

A list of all processes that are waiting to be admitted into the system for execution. These processes are typically stored in secondary memory and await scheduling to enter the ready queue.

36
Q

Ready Queue

A

A collection of all processes that are loaded in main memory and ready to execute but are waiting for CPU allocation by the scheduler.

37
Q

Device Queue

A

A queue of processes that are waiting for access to a particular I/O device. Each device may have its own separate queue.

38
Q

Return time (Tq)

A

Time process is on system
Tq = Tf - Ti, where Tf is the finalization time and Ti is the initiation time.

39
Q

Service time (Ts)

A

Ts = Tcpu + TI/O, representing time devoted to productive tasks.

40
Q

Waiting time (Tw)

A

Tw = Tq - Ts, measuring the time a process spends in waiting queues.

41
Q

Normalized return time (Tn)

A

Tn = Tq / Ts, indicating the ratio between return time and service time.