Which of the following system calls transforms an executable binary file into…
2022
Which of the following system calls transforms an executable binary file into a process?
- A.
fork
- B.
exec
- C.
ioctl
- D.
longjmp
Attempted by 887 students.
Show answer & explanation
Correct answer: B
Key idea: The exec*() family is what loads an executable file into a process. exec*() replaces the current process image with a new program from an executable binary (e.g., execve()).
fork() only creates a new process by duplicating the current one; it does not load a new executable.