Chapter 14 Flashcards

1
Q

What is short term scheduler

A

It decides and select which process to give to CPU from ready queue

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

What is life of a process

A

Life of a process depends upon 2 types of bursts
1. CPU burst (execute CPU instructions)
2. I/O burst (wait stage of process for CPU)
and at last process use CPU and terminate.

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

What is the example of a process which have less CPU burst and longer I/O burst

A

Editor

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

What is dispatcher

A

Dispatcher gives control of CPU to process selected by short-term scheduler

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

What is dispatcher latency

A

Dispatcher latency is the time it takes for the dispatcher to stop one process and start another running (typically a few microseconds)

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

When CPU scheduler (short term scheduler) invokes

A

It invokes in following 4 conditions

  1. Switches from running to waiting state
  2. Switches from running to ready state
  3. Switches from waiting to ready state
  4. Terminates
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is non-preemptive scheduler

A

Such a scheduler which assign CPU to a process and process does not completely complete its CPU burst and CPU does not granted back from him, called non-preemptive scheduler. Its example is

  1. Switches from running to waiting state
  2. Terminates
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is preemptive scheduler

A

All other schedulers which are not non-preemptive

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

Why we use scheduler

A
  • CPU utilization : keep CPU busy to maximum
  • Throughput : # of processes that complete their execution per time unit
  • Turnaround time: amount of time to execute a particular process
  • Waiting time: Amount of time a process waits in ready queue
  • Response time: amount of time it takes from when a request was submitted until the first response is produced, not output.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Response time is important for which 2 types of systems

A
  1. Time sharing system

2. Real time system

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

What is FCFS scheduling

A

First come first serve scheduling deals in a way that the process which comes first will be assigned to CPU first. and same treatment is done with other processes. first come first serve basis.

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

How we calculate wait time

A

When process come in queue and when It get CPU

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

What is convoy effect

A

In first come first serve scheduling, a CPU-prone process takes longer time and I/O prone process wait and when it free CPU all waiting processes goes for CPU quickly in their turn. Then CPU prone process again comes in CPU. This is called convoy effect.

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