Question
1.
2.
3.
4.
Answer (Detailed Solution Below)
Option 3 : The PID of the newly created child process / नव निर्मित चाइल्ड प्रक्रिया का PID
Advertisement
Detailed Solution
सही उत्तर The PID of the newly created child process / नव निर्मित चाइल्ड प्रक्रिया का PID है।
Key Points
Helpful?
Question:
In Unix, what does the fork() system call return to the parent process? / यूनिक्स में fork() सिस्टम कॉल पैरेंट प्रक्रिया को क्या लौटाती है?
1.
0 / 0
2.
-1 / -1
3.
The PID of the newly created child process / नव निर्मित चाइल्ड प्रक्रिया का PID
4.
The PID of the parent process itself / पैरेंट प्रक्रिया का स्वयं का PID
Correct Answer: The PID of the newly created child process / नव निर्मित चाइल्ड प्रक्रिया का PID
fork() returns 0 to the child process, the child's PID to the parent process, and -1 to the parent on failure. / fork() चाइल्ड को 0, पैरेंट को चाइल्ड का PID लौटाती है; विफलता पर पैरेंट को -1 मिलता है।
Downloaded from PrepSnap (prepsnap.in)