01—线程基本API详解

一、进程ID和线程ID (1)进程ID(pid_t):进程在系统中唯一的标识。getpid();     (2)线程ID(pthread_t):线程所属进程中,线程的唯一标识。它只在所属进程有效。pthread_self(); --------------------------------------------------------------------------------------
相关文章
相关标签/搜索