Process management Flashcards

1
Q

A computer system organized into processes may achieve:

A

∙ modularity — it is easier to build and maintain;

∙ speedup — it is easier to run on multiple machines

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

what is a process lifecycle described as?

A

A state transition diagram

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

A process control block contains:

A

∙ the process number (its identity);
∙ the process state (its registers);
∙ the process address space (its memory);
∙ the process I/O (its open files and network connections);

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

A context switch involves

A

s saving the machine state in one
process control block and loading the machine state from
another

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

A process address space has:

A

∙ a stack section for temporary data;
∙ a heap section for dynamically-allocated data;
∙ a data section for global data;
∙ a text section for program code

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

The Unix system calls used to spawn a process are:

A

fork: copies a process address space;
∙ exec: overwrites a process address space with a program;
∙ wait: waits for another process to exit;
∙ exit: terminates a process.

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

What does a fork do?

A

copies a process address space

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

What does a exec do?

A

overwrites a process address space with a program

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

Interprocess communication may be by either:

A

∙ shared memory;

∙ message passing.

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

Interprocess communication by shared memory involves:

A

processes writing data to/reading data from an agreed area of memory

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

Interprocess communication by message passing involves

A

processes sending messages to/receiving messages from an

agreed mailbox.

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