ExamGecko
Question list
Search
Search

Related questions











Question 153 - 200-201 discussion

Report
Export

A developer is working on a project using a Linux tool that enables writing processes to obtain these required results:

If the process is unsuccessful, a negative value is returned.

If the process is successful, 0 value is returned to the child process, and the process ID is sent to the parent process.

Which component results from this operation?

A.

parent directory name of a file pathname

Answers
A.

parent directory name of a file pathname

B.

process spawn scheduled

Answers
B.

process spawn scheduled

C.

macros for managing CPU sets

Answers
C.

macros for managing CPU sets

D.

new process created by parent process

Answers
D.

new process created by parent process

Suggested answer: D

Explanation:

The operation described is characteristic of thefork()system call in Linux, which is used to create a new process. Thefork()system call generates a new process by duplicating the calling (parent) process. If thefork()is successful, the PID of the child process is returned to the parent process, and a 0 value is returned to the child process.If unsuccessful, a negative value is returned2.

How to create a process in Linux? - Online Tutorials Library

asked 07/10/2024
Elvis WANDJI NGASSA
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first