Cheat Paper
Two Lines That Look the Same
Sources
man 2 getpid 2026-11-03
From glibc 2.3.4 up to and including glibc 2.24, the glibc wrapper function for getpid() cached PIDs, with the goal of avoiding additional system calls when a process calls getpid() repeatedly.
Wikipedia: Kernel (operating system)
A kernel is a computer program at the core of a computer's operating system that always has complete control over everything in the system.