Operating System - Process Scheduling Flashcards

1
Q

Maximise CPU use

A

Quickly switch processes onto CPU for time sharing

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

Under what condition does the process “gives” up the CPU?

A
  • I/O requests

-After N units of time have elapsed

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

Ready Queue

A

Once a process gives up the CPU it is added to a ready queue

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

Progress scheduler

A

Selects among available processes in the ready queue for next execution on CPU

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
5
Q

Queing diagram

A

Represents queue, resources, flows

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

Job queue

A

Set all processes in the system

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

Ready Queue

A

Set of all processes residing in main memory, ready and waiting to execute

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

Device queues

A

Set of processes waiting for an I/O device

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

How are the scheduling queues maintained

A

The operating system maintains scheduling queues of processes.

Processes migrate among the various queues.

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

Short-term scheduler (cpu scheduler)

A

Selects which process should be executed next and allocates a CPU

Sometimes the only scheduler in the program

Is invoked frequently (milliseconds) must be fast

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

Long-term scheduler (Job scheduler) selects which processes should be brought into the ready queue

A

Long-term scheduler is invoked infrequently(seconds, minutes) => may be slow

The long-term scheduler controls the degree of multiprogramming

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

Types of processes

A

-I/O bound process - spends more time doing I/O than computations, many short CPU bursts

-CPU-bound process - spends more time doing computations, few very long CPU bursts

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

Context Switch

A

When the CPU switches to another process, the system must save the state of the old process and load the saved state for the new process via a context switch

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

Dispatch Events

A

The events which will cause the OS to switch from one process to another

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

Clock Interrupt

A

A type of Dispatch Event

Occurs after a specified time interval usually 3-10ms

Execution of processes interrupted, control goes back to OS

The current process is added to the ready queue

Frequency of such an interrupt important system parameter

Balance overhead of context switch vs responsiveness

16
Q

Memory Fault/ Page fault

A

Another type of dispatch event

Executing process refers to a virtual memory address that is not allocated a physical memory location (data still on disk)

Currently executing process is switched to blocked state

Switch to another process from the ready queue

When I/O completed blocked process moves back to ready queue

17
Q

Dispatcher

A

An OS function that allocates CPU to processes, switches CPU from one process to the next