Question
1.
2.
3.
4.
Answer (Detailed Solution Below)
Option 2 : 0 / 0
Advertisement
Detailed Solution
सही उत्तर 0 / 0 है।
Key Points
Helpful?
Question:
Inside the newly created child process, fork() returns: / नव-निर्मित चाइल्ड प्रक्रिया के अंदर fork() क्या लौटाता है?
1.
The child's own PID / चाइल्ड का स्वयं का PID
2.
0 / 0
3.
The parent's PID / पैरेंट का PID
4.
-1 / -1
Correct Answer: 0 / 0
fork() returns 0 to the child so it can identify itself, the child's PID to the parent, and -1 only when the fork fails. / fork() चाइल्ड को 0 लौटाता है ताकि वह स्वयं को पहचान सके, पैरेंट को चाइल्ड का PID मिलता है, और -1 केवल fork विफल होने पर मिलता है।
Downloaded from PrepSnap (prepsnap.in)