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 virtualisation?

A

When we give the impression that we are running multiple processes at the same time.

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

What is time-sharing? What is its cost?

A

This is when we run one process, then swap to another after a certain period of time. The cost is that each process will perform slightly worse.

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

What is a policy?

A

An algorithm which makes a decision for the OS, for example a scheduling policy like shortest-time-to-completion-first.

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

What is a process’s address space?

A

The memory which a process is able to access and address.

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

What are the stages of creating a process?

A

A program initially resides on the disk (persistent storage), and must be loaded into its address space by the OS. This may be done all at once, or more likely lazily as the code is needed. The OS must also allocate memory in the run-time stack for the program. It may also allocate some memory in the program’s heap. Finally, the OS will perform some IO setup.

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

What are the three states which a process can be in?

A

Running, Ready, Blocked.

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

How do we keep track of which processes we have?

A

With a process control block.

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