-   Linux - Kernel (
-   -   Duplicated threads (

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 03:26 AM.