Questions: Processes and the Process Control Block

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

Two users on the same Linux system both launch the same Python interpreter. User A's program sets a global variable `counter = 100`. Will User B's Python process see `counter = 100`?

AYes — they share the same program binary, so they share global variables
BYes — global variables in Python are shared across all instances of the interpreter
CNo — each process has its own isolated address space; changes in one process's memory are invisible to the other
DIt depends on whether both processes are running at exactly the same time
Question 2 Multiple Choice

During a context switch from Process A to Process B, what must the operating system do?

ASave only Process A's program counter to its PCB, since it is the only register that changes between processes
BWrite Process A's entire address space to disk before loading Process B
CSave all of Process A's register values to its PCB, then load all of Process B's saved register values from its PCB
DRestart Process B from the beginning of its program to ensure a clean execution environment
Question 3 True / False

Two instances of the same program running simultaneously share the same address space, allowing each to access the other's variables.

TTrue
FFalse
Question 4 True / False

The Process Control Block (PCB) contains all the information the OS needs to pause and correctly resume a process.

TTrue
FFalse
Question 5 Short Answer

Explain the difference between a program and a process, and why two processes running the same program cannot interfere with each other's data.

Think about your answer, then reveal below.