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. execKey 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…

  1. A.

    fork

  2. B.

    exec

  3. C.

    ioctl

  4. D.

    longjmp

Attempted by 1435 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.

Explore the full course: Rssb Senior Computer Instructor

Loading lesson…