MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

UNIX

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The ____ system call is used to create a process.
A
exec
B
fork
C
wait
D
phase
Explanation: 

Detailed explanation-1: -The fork() System Call. System call fork() is used to create processes. It takes no arguments and returns a process ID. The purpose of fork() is to create a new process, which becomes the child process of the caller.

Detailed explanation-2: -Detailed Solution In Unix like operating system, the fork system call is used for creating a new process where a process is a copy of itself, which is called the child process. The fork system call is usually a system call, implemented in the kernel.

Detailed explanation-3: -fork() creates a new process by duplicating the calling process. The new process is referred to as the child process. The calling process is referred to as the parent process. The child process and the parent process run in separate memory spaces.

Detailed explanation-4: -1 Answer. Explanation: A process in UNIX is created using fork() system call. It creates an exact copy of the process that invokes it. Now there will be two processes, one parent process and one child process.

Detailed explanation-5: -The process which calls fork and creates a new process is the parent process. The child and parent processes are executed concurrently. But the child and parent processes reside on different memory spaces.

There is 1 question to complete.