Which of the following system calls transforms an executable binary file into…
2021
Which of the following system calls transforms an executable binary file into a process?
Answer: B. exec — 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…
- A.
fork
- B.
exec
- C.
ioctl
- D.
longjmp
Attempted by 1440 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.
Loading lesson…