Practice 20 Process Management multiple-choice questions designed for CDAC CCAT exam preparation. Click "Show Answer" to reveal the correct option with detailed explanation.
Show Answer & Explanation
Correct Answer: B — Process state, registers, memory info
PCB stores process ID, state, registers, memory limits, scheduling info, etc.
Show Answer & Explanation
Correct Answer: A — New, Ready, Running, Waiting, Terminated
Five process states: New, Ready, Running, Waiting (Blocked), Terminated.
Show Answer & Explanation
Correct Answer: B — Creates new process
fork() creates a child process as copy of parent.
Show Answer & Explanation
Correct Answer: B — Terminated but entry in process table exists
Zombie: process terminated but parent hasn't read its exit status.
Show Answer & Explanation
Correct Answer: B — Child whose parent terminated
Orphan process: child process whose parent has terminated.
Show Answer & Explanation
Correct Answer: B — Code, data, files
Threads share code, data, and files; each has own stack and registers.
Show Answer & Explanation
Correct Answer: B — Multiple CPUs
Multiprocessing uses multiple processors/CPUs.
Show Answer & Explanation
Correct Answer: B — Mutual exclusion lock
Mutex ensures mutual exclusion in critical sections.
Show Answer & Explanation
Correct Answer: A — Mutual exclusion, Progress, Bounded waiting
Three requirements: Mutual Exclusion, Progress, Bounded Waiting.
Show Answer & Explanation
Correct Answer: B — Semaphores (mutex + full + empty)
Uses mutex for critical section, full and empty semaphores for synchronization.
Show Answer & Explanation
Correct Answer: B — Saving and restoring process state
Context switching saves current process state and restores the state of another process.
Show Answer & Explanation
Correct Answer: B — OS can interrupt running process
Preemptive scheduling allows OS to interrupt a running process to run another.
Show Answer & Explanation
Correct Answer: B — Process runs until it voluntarily releases CPU
In non-preemptive scheduling, a process runs until it completes or blocks voluntarily.
Show Answer & Explanation
Correct Answer: C — LRU
LRU (Least Recently Used) is a page replacement algorithm, not CPU scheduling.
Show Answer & Explanation
Correct Answer: B — FCFS
Convoy effect in FCFS: short processes wait behind long process.
Show Answer & Explanation
Correct Answer: B — SJF and Priority scheduling
Starvation can occur in SJF (long jobs) and Priority scheduling (low priority jobs).
Show Answer & Explanation
Correct Answer: B — Starvation
Aging gradually increases priority of waiting processes to prevent starvation.
Show Answer & Explanation
Correct Answer: C — Shared memory and message passing
IPC methods include shared memory, message passing, pipes, and sockets.
Show Answer & Explanation
Correct Answer: B — fork()
fork() creates a new child process as a copy of the parent process.
Show Answer & Explanation
Correct Answer: B — To prevent race conditions
Synchronization prevents race conditions when multiple processes access shared resources.