LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Duplicated threads (http://www.linuxquestions.org/questions/linux-kernel-70/duplicated-threads-4175445512/)

miklund 01-14-2013 03:51 AM

Duplicated threads
 
Running a simple program with about 6 threads. When using ps I will see 6 PIDs. When adding and calling "gettid" for every running thread there seems to be duplicate PIDs when using ps!!! I am running on Red Hat platform.

miklund 01-14-2013 08:50 AM

Wrong from me
 
Used syscall(2). Changed to syscall(SYS_gettid). Now correct! Sorry!


All times are GMT -5. The time now is 07:50 PM.