Arguments: None
Return Value:
PID | Success |
Description: Returns the process identifier of the invoking process. The system call does not fail.
Find the PID of the current process from the Process Table. Return the PID of current process.
Arguments: None
Return Value:
PPID | Success |
Description: Returns to the calling process the value of the process identifier of its parent. The system call does not fail.
Find the PPID of the current process from the Process Table. Return the PPID.