UGC NET Paper 2 (Computer Science)Hard
In a Unix file system, the Linux system call that creates a new process by duplicating the caller and returns 0 in the new process is:
- A. exec()
- B. fork()
- C. wait()
- D. clone() only
Correct answer: B. fork()
fork() returns the child's PID to the parent and 0 to the child; exec() replaces the process image rather than creating one.
Practise more UGC NET Computer Science and Applications questionsUGC NET Computer Science and Applications: notes and key points
More UGC NET Computer Science and Applications questions
- The binary representation of the decimal number 10 is:
- Which data structure follows the LIFO principle?
- The default port number of HTTP is:
- The worst-case time complexity of binary search on n sorted elements is:
- Which normal form removes transitive dependencies?
- The number of edges in a complete undirected graph with n vertices is: