Match List I with List II \(\begin{array}{|c|l|c|l|l|} \hline \text{List I} &…
2021
Match List I with List II
\(\begin{array}{|c|l|c|l|l|} \hline \text{List I} & \text{List II} \\ \hline \text{System calls} & \text{Description} \\ \hline \text{A. fork()} & \text{I. Sends a signal from one process to another process} \\ \hline \text{B. exec()} & \text{II. Indicates termination of the current process} \\ \hline \text{C. kill()} & \text{III. Loads the specified program in the memory} \\ \hline \text{D. exit()} & \text{IV. Creates a child process} \\ \hline \end{array}\)
Choose the correct answer from the options given below:
- A.
A ‐ II , B ‐ III , C ‐ IV , D ‐ I
- B.
A ‐ IV , B ‐ III , C ‐ I , D ‐ II
- C.
A ‐ IV , B ‐ I , C ‐ II , D ‐ III
- D.
A ‐ IV , B ‐ III , C ‐ II, D ‐ I
Attempted by 712 students.
Show answer & explanation
Correct answer: B
Correct matching and explanation:
fork() — Creates a child process by duplicating the calling process. This system call returns twice: once in the parent and once in the child.
exec() — Loads the specified program into the process memory, replacing the current process image with a new one. It does not create a new process.
kill() — Sends a signal from one process to another process. The signal can request termination or other actions depending on the signal and handlers.
exit() — Indicates termination of the current process and returns an exit status to the parent.
Therefore, the correct associations are: fork() with 'Creates a child process'; exec() with 'Loads the specified program in the memory'; kill() with 'Sends a signal from one process to another process'; and exit() with 'Indicates termination of the current process'.
A video solution is available for this question — log in and enroll to watch it.