Processes Flashcards

1
Q

What is a process?

A

A process is a program in execution

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

True or False…

Process execution must progress in sequential fashion?

A

True

(No parallel execution of instructions of a single process)

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

What is a program and how does it become a process?

A

A program is a passive entity on a disk (an executable file). It becomes a process when the executable file is loaded into memory.

Can be started via GUI mouse clicks, command line entry of its name, or another way.

One program can be several processes.

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

As a process executes, it changes state. What are the five process states?

A

New: The process is being created,
Running: Instructions are being executed,
Waiting: The process is waiting for some event to occur,
Ready: The process is waiting to be assigned to a processor,
Terminated: The process has finished execution.

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

What is a process control block?

(PCB)

A

Contains information associated with each process

(AKA Task Control Block)

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

What are the names of the seven data stored in the PCB?

A

Process state, program counter, CPU registers, CPU scheduling information, memory-management information, I/O status information, accounting information.

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

What is the process state?

A

What state the process is in; running, waiting, etc.

(Information in the PCB)

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

What is the program counter?

A

Contains the location of the instruction to execute next.

(Information in the PCB)

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

What are CPU registers?

A

Contents of all process-centric registers.

(Information in the PCB)

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

What is CPU scheduling information?

A

Priority, scheduling queue.

(Information in the PCB)

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

What is I/O status information.

A

I/O devices allocated to process, lsit of open files.

(Information in the PCB)

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

What is accounting information?

A

CPU used, clock time elapsed since start.

(Information in the PCB)

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

What is process scheduling?

A

The process scheduler selects among available processes for next execution on CPU core in order to maximise CPU use.

Maintains scheduling queues of processes. Ready queue and wait queues.

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

What is a context switch and how does it work?

A

A context switch occurs when the CPU switches from one process to another. The state of the first process is saved into the PCB, and the second process is reloaded from the PCB so the second process can begin executing. The same is done in reverse if the first process needs to be executed.

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