Unit 2: Processes and Process scheduling Flashcards

1
Q

What is a process?

A

An executing program.

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

What are the three process states?

A

Running, Ready, and Blocked.

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

In processing, “running” is when………..

A

the CPU is actually being used.

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

In processing, “ready” is……….

A

runable, but has no CPU access.

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

In processing, “ blocked” is………..

A

waiting for an external event to occur.

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

What are the two process conditions?

A

Processor Bound and I/O Bound.

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

What is preemptive scheduling?

A

processes give up CPU based on clock interrupt.

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

What is Non-preemptive scheduling?

A

Processes voluntarily give up the CPU (run til done).

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

In scheduling, the amount of useful work accomplished per unit time is called ………..

A

Throughput

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

In scheduling, the fraction of time the device is busy is called …………

A

Utilization

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

What is Turnaround time?

A

The length of time between when the job arrives in the system and when it finally finishes.
•(exit time - arrival time)

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

What is wait time?

A

The amount of time the job is ready.
• ( turnaround time - execution time )

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

What is response time?

A

The length of time between when the job arrives in the system and when it starts to produce output.
• ( first execution time - arrival time )

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

What are the three levels of scheduling

A

Admission, Memory, and CPU.

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

Is FIFO preemptive or non-preemptive?

A

Non-preemptive

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

Is the shortest first algorithm preemptive or non-preemptive?

A

Non-preemptive

17
Q

Is the shortest remaining algorithm preemptive or non-preemptive?

A

Preemptive

18
Q

A scheduler that runs the first on the queue until it blocks, then runs the next, and so on is called ……….

A

FCFS

19
Q

Whenever the CPU chooses the process with the shortest execution time to run first, it is called ……….

A

SJF

20
Q

The scheduler that runs the process with the shortest remaining time first is called …………

A

SRTN

21
Q

The preemptive version of the SJF is known as ………

A

SRTN

22
Q

The scheduler that is like FCFS, but after a length of time, quantum, if the current process is not completed it is moved to the end of the queue after the next process has started is called …

A

Round Robin

23
Q

The scheduler that always runs the process with the highest priority first, and can be either preemptive or non-preemptive, is called ….

A

Priority Scheduling

24
Q

A process being allowed to run even though it has the lowest priority is called …

A

Priority Inversion