lkml.org 
[lkml]   [2010]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: Which function returns LWP in Linux.
    From
    Hello,

    On Mon, May 17, 2010 at 11:57 AM, Srinivas Nayak
    <sinu.nayak2001@gmail.com> wrote:
    > 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?
    >

    You are asking procps question in LKML.

    Please check http://procps.sourceforge.net/

    Download propps package, read source code and you will get the reply.

    Thanks,
    --
    Jaswinder Singh.
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2010-05-17 08:59    [W:5.120 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site