Operating System - Process Management Flashcards

1
Q

The Process Concept

A

“A program in execution”

Program is passive entity stored on disk (executable file) when you start executing a program it becomes an active entity (a process)

You can have multiple processes for the same program.

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

One program can have several processes and each one will have its own context. True or false?

A

True

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

What are the three basic components of process?

A
  • Executable program code

-Data related to the program

-Execution Context

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

Execution Context

A

Process ID, Group ID, User ID

Stack Pointer, Program Counter, CPU Registers

File Descriptors, Locks, Network Sockets

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

Heap

A

Dynamic Memory Allocation, can request memory while the program is running without knowing how many items or how much data you need to store in advance

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

How to calculate the maximum value or last address of x number of bits?

A

2^x - 1

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