LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 01-14-2013, 04:51 AM   #1
miklund
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
miklund
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!
 
  


Reply


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 03:59 PM.

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