Re: same pid ?

"Michal Nazarewicz" <[email protected]> Thu, 10 Feb 2011 13:22:41 +0100
Newsgroups gmane.linux.c-programming
Organization Google
Message-ID <[email protected]>
On Thu, 10 Feb 2011 12:37:25 +0100, ratheesh k <[email protected]>  
wrote:
> i created two threads with pthread library. But both threads returns
> same pid with getpid() function. ???

PID is a Process ID.  All threads in given process have the same PID.

-- 
Best regards,                                       _     _
.o. | Liege of Serenly Enlightened Majesty of     o' \,=./ `o
..o | Computer Science,  Michal "mina86" Nazarewicz  (o o)
ooo +-<email/jid: [email protected]>--------ooO--(_)--Ooo--
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html