Question: is getpid a system call?
Answer: As I understand it, certain functions are made into system calls because they access or change information that the OS might want to protect, so they are implemented as a system call in order to transfer control to the kernel. But as I understand it, getpid() is just returning the process id of the calling process.