CH3 (Summarized) Flashcards

(12 cards)

1
Q

________ space contains a program counter, text (code), heap, stack, and data sections.

A

Process memory

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

Process memory space contains a program counter, text (code), heap, stack, and data sections.
1) _______ section: program code itself
2) _______: temporary data (function parameters, return addresses, local variables)
3) ______ section: global variables
4) _______ : contains memory dynamically allocated during run-time

A

1) Text
2) Stack
3) Data
4) Heap

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

_________ contains information associated with each process: process state, PC, CPU
registers, scheduling information, accounting information, I/O status information

A

Process Control Block (PCB)

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

Types of processes:
________: spends more time doing I/O than computations, many short CPU bursts.
_______: spends more time doing computations, few very long CPU bursts.

A

I/O Bound, CPU Bound.

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

When CPU switches to another process, the system must save the state of the old process (to PCB) and load the saved state (from PCB) for the new process via a _____________.

A

context switch

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

T/F: Time of a context switch is dependent on hardware.

A

True, Context switch time is hardware-dependent because factors like CPU design, registers, cache, and memory speed impact how fast process state transitions occur.

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

T/F: PID allows for process management.

A

True.

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

T/F: Parents and children can share all, some or none of the resources.

A

True.

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

_______ system call creates new process.

A

fork()

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

T/F: Parents cannot execute concurrently with children.

A

F, Parents can execute concurrently with children or wait until
children terminate

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

________ system call used after a fork to replace the processes’ memory space with a new program.

A

exec()

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

Cooperating processes need _____________ through shared memory or message passing.

A

interprocess communication (IPC)

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