Process Scheduling Flashcards

1
Q

Name the four types of scheduling

A

Long term
Medium Term
Short Term
I/O

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

What is long term scheduling?

A

The decision to add to the pool of processes to be executed

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

What is medium term scheduling?

A

The decision to add to the number of processes that are partially or fully in main memory

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

What is short term scheduling?

A

The decision as to which available process will be executed by the processor

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

What is I/O scheduling?

A

The decision as to which process’s pending I/O request shall be handled by an available I/O device

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

Name the two types of queues

A

Job Queue and Ready Queue

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

What is the job queue?

A

a list of all the processes or jobs that are waiting to be executed. These processes are typically in a “new” or “created” state.

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

What is the ready queue?

A

The processes that are residing in main memory and are ready and waiting to be executed are kept in a list called a ready queue.

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

What is the difference between preemptive and non-preemptive scheduling?

A

Preemptive scheduling allows the operating system to interrupt and switch between processes at any time.
Non-preemptive scheduling only allows processes to be switched voluntarily by the process itself.
Preemptive is more responsive, while non-preemptive is simpler but less responsive.

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

What are i/o bound processes?

A

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

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

What are CPU bound processes?

A

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

What is the effect of swapping on OS Overhead?

A

The OS needs to maintain and manage the swapping process, which includes keeping track of the status and location of swapped-out programs, deciding which programs to swap in or out, and performing the actual data transfer operations. This management requires CPU cycles and resources.

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

List five (5) performance criteria that can be used for selecting or comparing CPU scheduling algorithm.

A
  1. CPU Utilization: measures the extent to which the CPU is kept busy processing tasks.
  2. Throughput: refers to the number of processes completed per unit of time.
  3. Turnaround Time: total time taken from the submission of a process to its completion.
  4. Waiting time: measures the total time a process spends waiting in the ready queue before it is executed.
  5. Response time: time taken from when a request is made until the first response is produced.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly