[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTikD7M_PKH3YgOWIvrcD6aW6X-gYIo2iw52QRRq_@mail.gmail.com>
Date: Mon, 17 May 2010 11:57:14 +0530
From: Srinivas Nayak <sinu.nayak2001@...il.com>
To: linux-kernel@...r.kernel.org
Subject: Which function returns LWP in Linux.
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists