← All topics
Quiz: Processes and Threads: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. A process waiting for a disk read is in which state?
- Q2. What does the PCB contain?
- Q3. How many processes exist after a program calls fork() three times in a row?
- Q4. Which do threads of the same process NOT share?
- Q5. What happens during a context switch?
- Q6. What does fork() return in the child process?
- Q7. A child process has finished, but its parent has not called wait() to collect its exit status. What is the child called?
- Q8. A running process uses up its time slice. Which state does it move to?
- Q9. Which part of a process's memory holds objects allocated while the program runs (for example with malloc)?
- Q10. Why is switching between two threads of the same process cheaper than switching between two processes?