Linux

Why do we need the wait() system call?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

wait() is used by a parent process to wait for the child process to finish execution. If wait is not used by a parent process then a child process might become a zombie process.