linux中pid gid tgid tid的区别和联系

getpid : 取得process id,对于thread,就是取得线程对应进程的id;bash 对应的system call:ui  asmlinkage long sys_getpid(void) 1614 { 1615         return current->tgid; 1616 }线程 tgid = thread group idorm   ///////////////////
相关文章
相关标签/搜索