Lecture 7: Multiprogramming Flashcards

1
Q

Define: Multiprogramming

A

Allows for the execution of multiple processes but only one process active at any time.

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

Define: Interleaved Execution

A

A single-core processor runs only 1 process at a time - however, one process’s instructions may be executed before the completion of the instructions from another process.

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

What is the objective of Interleaved Execution?

A

To have some process running at all times in order to maximize CPU utilization.

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

Define: Process Control Block

A

PCB characterizes each process. The block contains all info on a process’s/program’s state that is in execution.

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

What specific information does a PCB store for each process / program in execution?

A

1) Pointer to all Process Info (Text, Data, Stack, Heap)
2) Program Counter
3) Current values inside General-purpose registers
4) A set of operating system resources
5) PID
6) Process Priority for scheduling
7) Process State
8) A pointer to the next PCB in the Ready queue linked-list

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

What is the C Structure used to store the PCB?

A

A Struct called task_struct

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

How are all active process stored / represented in Linux?

A
  • Double-Linked List of task_structs

- Kernel maintains a pointer, “current”, that points to the process currently executing on the system

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

How are Queues, used for the “ready” processes, implemented?

A

As a linked-list. A ready queue header contains pointers to the first and last final process control blocks in the list.

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

Define: Device Queue

A

List of processes waiting for a particular I/O device

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