Linux上的程序如何内省其pid?

Wil*_*mKF 1 linux introspection

Linux上的程序如何发现自身的进程ID?/ proc/self中有什么东西可以解决这个问题吗?