#include <stdio.h>
#include <unistd.h>
int main ( )
{
printf ("The process ID is %d\n", (int) getpid ()) ; //±¾½ø³Ì
printf ("The parent process ID is %d\n", (int) getppid ()) ; //¸¸½ø³Ì
return 0 ;
}
linux(cygwin) 获取进程号
最新推荐文章于 2020-11-05 15:20:00 发布