Which of the following best describes what a process is in an operating system?
Think about what happens when you run a program.
A process is a program that is currently running. It includes the program code and the current activity such as the program counter and variables.
Which of the following is NOT typically considered a component of a process in an operating system?
Consider what parts are essential for a process to run.
The user interface layout is not part of the process itself; it is part of the program's design but not a component managed by the operating system as part of the process.
Which process state transition occurs when a process moves from waiting for an event to ready to run?
Think about when a process finishes waiting for something.
When a process finishes waiting for an event (like I/O completion), it moves from the waiting state to the ready state, meaning it can now be scheduled to run.
Which statement correctly explains the difference between a process and a program?
Consider what happens when you run a program.
A program is just the code stored on disk, while a process is the program running with its own memory and state.
Why is the Process Control Block (PCB) essential for process management in an operating system?
Think about what the OS needs to remember about a process when switching between them.
The PCB holds process state, program counter, registers, memory limits, and other info needed to pause and resume processes.