4. Processes Flashcards

1
Q

What is a process?

A

A running program.

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

What is time sharing of CPU?

A

Allowing users to run as many concurrent processes at the same time. This is possible because of virtualising CPU.

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

What is space sharing?

A

Allowing users to run as many concurrent processes at the same time that access a common memory resource. This is possible because of virtualising memory.

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

What is a mechanism?

A

It is the way of implementing a functionality.

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

What is a policy?

A

It is the set of rules of guidelines that govern how something should be done.

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

What is the difference between code and data in memory?

A

Code refers to the instructions that the program has, data refers to the local variables.

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

What is machine state?

A

The state of a running process

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

What is part of a machine state?

A

Memory (instructions and data), stack pointers, registers, program counter, I/O status

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

How are programs transformed into processes?

A
  1. The OS loads the code and data into memory
  2. Initialise memory for heap and stack
  3. Setup I/O
  4. Start the program by running the main() function
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the different process states?

A

Running, Ready and Blocked

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

What data structure does the OS use to keep track of all running processes?

A

Process List

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

What is the process control block?

A

An individual data structure that stores information about a process.

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