ruigelwang

获取进程ID:

原型:

#include <unistd.h>

pid_t getpid(void);

返回调用进程的进程ID。

 

 

获取线程ID:

原型:

#include <pthread.h>

pthread_t pthread_self(void);

返回调用线程的线程ID。

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-10
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-13
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案