OSStructuresAndProcesses Flashcards
What is the purpose of an Operating System?
To manage hardware resources and provide an environment for application execution.
List three major OS services.
Program execution, I/O operations, and file system management.
What is a system call?
An interface between a running program and the operating system.
What is the difference between user mode and kernel mode?
User mode limits access to hardware, kernel mode allows full control over the hardware.
What is a process?
A program in execution that includes program counter, registers, and variables.
What are the five states of a process?
New, Ready, Running, Waiting, Terminated.
What information does a Process Control Block (PCB) contain?
Process state, program counter, CPU registers, scheduling information, memory management info, I/O status.
What is context switching?
Saving the state of one process and loading the state of another.
Difference between program and process?
Program is passive (on disk), process is active (in memory and executing).
What is the role of the short-term scheduler?
Selects which process should execute next on the CPU.