Multiple choice

Which of the following system calls does not return control to the calling point on termination?

  1. fork

  2. exec

  3. ioctl

  4. longjmp

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

exec() replaces the current process's memory space with a new program - the original code cannot return to the calling point. fork() creates a child process and returns to both parent and child. ioctl() performs device control and returns. longjmp() performs a non-local goto within the same process.