All of lore.kernel.org
 help / color / mirror / Atom feed
* Which function returns LWP in Linux.
@ 2010-05-17  6:27 Srinivas Nayak
  2010-05-17  6:56 ` Jaswinder Singh Rajput
  2010-05-17  7:03 ` KOSAKI Motohiro
  0 siblings, 2 replies; 7+ messages in thread
From: Srinivas Nayak @ 2010-05-17  6:27 UTC (permalink / raw)
  To: linux-kernel

Hi,

For a process, we have different PIDs. For threads under a single
processes, we have different LWP id, but same PID in Linux.
ex.

root@pc:/home/srinivas# ps -eLf
UID        PID  PPID     LWP  C STIME       TIME     CMD
root       100     1     100  0 May13       00:00:02 ./a.out
root       100     1     102  0 May13       00:00:00 ./a.out

getpid() function returns PID of a process.
Which function retuns LWP id for thread?

Sincerely,
Srinivas Nayak

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-05-17 18:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-17  6:27 Which function returns LWP in Linux Srinivas Nayak
2010-05-17  6:56 ` Jaswinder Singh Rajput
2010-05-17  7:03 ` KOSAKI Motohiro
2010-05-17  7:33   ` Jaswinder Singh Rajput
2010-05-17 10:13     ` Srinivas Nayak
2010-05-17 13:30       ` Samuel Thibault
2010-05-17 18:13         ` H. Peter Anvin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.