Which of the following best describes the major difference between UNIX fork()…

2025

Which of the following best describes the major difference between UNIX fork() and Windows CreateProcess?

  1. A.

    CreateProcess creates a new thread in the same process

  2. B.

    Both are identical in behaviour

  3. C.

    fork() only runs in GUI environments

  4. D.

    fork() copies the current process; CreateProcess creates a new one from scratch

Attempted by 43 students.

Show answer & explanation

Correct answer: D

The correct answer is Option D. The fundamental difference lies in how each system handles process creation. UNIX's fork() creates a new process by duplicating the calling process, resulting in two nearly identical processes that share memory until one writes to it. In contrast, Windows CreateProcess does not duplicate the current process; instead, it loads a new executable from disk and creates an entirely fresh process with its own memory space. This distinction makes fork() efficient for immediate execution of existing code, while CreateProcess is designed to launch new programs. Option A is incorrect because fork() and CreateProcess create processes, not threads within the same process. Option B is false as their mechanisms differ significantly. Option C is wrong because fork() operates in both command-line and GUI environments on UNIX systems.

Explore the full course: Niacl Ao It Specialist