Question 12
When a shell executes a command and then waits for it to finish before printing the next prompt, which sequence of system calls is most likely used?
exec → fork → wait
wait → fork → exec
fork → wait → exec
fork → exec → wait
When a shell executes a command and then waits for it to finish before printing the next prompt, which sequence of system calls is most likely used?
exec → fork → wait
wait → fork → exec
fork → wait → exec
fork → exec → wait
Correct answer
fork → exec → wait
Question 12 of 20 in the IIT Madras BS Operating Systems (Operating Systems) End Term paper sat on 10 May 2026, in the January 2026 term (OS 10 May 26). It carries 2 marks.