Question discussion

What is typically returned by the getpid system call in Unix-based operating systems?

359223Medium DSSSB TGT Computer Science 0 replies 0 views
0
What is typically returned by the getpid system call in Unix-based operating systems?
  • AThe process ID of the kernel
  • BProcess ID of the current process
  • CProcess ID of the first process
  • DProcess ID of the parent process
Correct answer: B

Explanation

getpid() returns the process ID of the calling (current) process.

Discussion 0

Nobody has replied yet. Start the discussion!