正在加载图片...
用户如何获得一个进程的pd 冷系统调用epd k米 k sys getpid-return the thread group id of the current process Note, despite the name this returns the tgid not the pid the tgid and the pid are identical unless CLONE THREAD was specified on clone in 4 which case the tgid is the same in all threads of the same group. This is SMP safe as current->tgid does not change. asmlinkage long sys getpid( void) return task tgid vnr(current) ☆ getpid返回组pid 2021/2/6 Linux操作系统分析 17165 嵌入式系统实验室 EMBEDDED SYSTEM LAB口RAT口RY SU:MDU INTHUTE OR AOVANCLD STUOY D USTt2021/2/6 Linux操作系统分析 17/65 用户如何获得一个进程的pid ❖系统调用getpid ❖关于进程组 ➢使用组链表 ➢所有进程共享组内第一个进程的pid ⚫数据:tgid ❖单独一个进程可以看成只有一个进程的组 ❖getpid返回组pid
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有