Multiple choice technology programming languages

The fork() system call is used for the following process management

  1. To increase/decrease the data segment size of a process

  2. To create a new process

  3. To bias the existing priority of a process

  4. To get parent process identifier

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

The fork() system call creates a new process by duplicating the calling process. The new process (child process) is an exact copy of the parent process except for the returned value. fork() is the primary mechanism for process creation in Unix-like systems, enabling parent-child process relationships and concurrent execution.