Multiple choice technology operating systems

which function is called to create a PID for a process

  1. fork()

  2. pid()

  3. cpid()

  4. nfork()

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

fork() is the Unix system call that creates a new process by duplicating the calling process, assigning a unique PID to the child. pid() and cpid() are not standard Unix functions, while nfork() is not a valid system call.