process.c
来自「linux多线程编程的例程」· C语言 代码 · 共 12 行
C
12 行
/*process.c*/
#include<stdio.h>
#include<unistd.h>
#include <stdlib.h>
int main()
{
/*获得当前进程的进程ID和其父进程ID*/
printf("The PID of this process is %d\n",getpid());
printf("The PPID of this process is %d\n",getppid());
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?