1.

What are the various IDs in UNIX processes?

Answer»

There are 3 ids ASSOCIATED with the Unix process:

  • PID - Process Id, which is unique in the range of 0 to 3000.
  • PPID - Parent process id
  • PGID - Process group id, which is used to group processes together.

getppid() retrieves the Parent Process ID, getpid() retrieves the Process ID and getpgrp() retrieves the process group ID. The process ALSO has a real user ID (the UID), an EFFECTIVE user ID (the EUID), a real user group ID (the GID), and an effective user group ID (the EGID).



Discussion

No Comment Found