LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 01-14-2013, 04:51 AM   #1
LQ Newbie
Registered: Jan 2013
Posts: 2

Rep: Reputation: Disabled
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.
Old 01-14-2013, 09:50 AM   #2
LQ Newbie
Registered: Jan 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Wrong from me

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
some threads are become unnoticed because of large number of continious threads deepak_cucek LQ Suggestions & Feedback 9 08-21-2009 12:21 AM
Duplicated dirs with samba Nacho Gentile Linux - Server 0 05-27-2009 01:40 PM
home directory duplicated eldondehart Linux - Desktop 18 12-12-2008 02:59 PM
Can different FS be duplicated satimis Linux - General 4 03-17-2006 07:00 PM
Java threads listed using kill -3 does not contain all threads found using ps -auxww coneheed Programming 2 11-14-2005 09:57 AM

All times are GMT -5. The time now is 10:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration