2 - Scheduling Flashcards

1
Q

What are the process states?

A

Running
Runnable
Blocked

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

What are the three DECSystem-10 tables?

A

JBTQ - Job Table Queue
JBSTS - Job Status Table
QTT - Queue Transfer Table

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

JBTQ Purpose

A

To store the set of all jobs in three “priority queues” PQ1,2,3

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

What is the run queue?

A

The concatenation of three “priority queues”

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

What is a doubly linked list?

A

Each element has a pointer to the next and previous element.
Each PQ uses one.

Allows efficient deletion and insertion

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

Purpose of Job Status Table?

A

Stores extra info about each job (process)

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

What are the Job Status Bits?

A

RUN: 1 if runnable
JRQ: 1 if changed state and needs requeue
The wait state code - reason it’s not runnable

Others:
SWP: currently swapped out or trainsit
CMWB: set to swap in
NSWP: Do not swap out

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

Define QRT

A

Quantum Run TIme left

Time for which the program should be left to run

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

What is QRT measured in?

A

Jiffies

Linked to frequency,
Denoted by interrupt,
Regular source of interrupts,
Marks end of time slice

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

What happens if QRT exceeded?

A

in PQ1:
Moved to PQ2 with small qrt

in PQ2:
Moved to PQ3 with large qrt

in PQ3:
Moved to PQ2 with small qrt

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

Purpose of the QTT (Queue Transfer Table)

A

Denote which queue to move to and what QRT to set when an “event” occurs (eg QRT exceeded)

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