Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What means LWP column in the "top" command? Number of threads?

2,687 views
Skip to first unread message

Peter Hanke

unread,
Sep 25, 2010, 3:01:39 AM9/25/10
to
When I type "top" the a couple of running processes are shown.

One of the output columns are labelled "LWP" .
What does that column mean? Is this the number of threads inside the process?

Peter

Harald Meyer

unread,
Sep 25, 2010, 4:37:16 AM9/25/10
to
[F'up ignored]

Peter Hanke wrote:
> When I type "top" the a couple of running processes are shown.
>
> One of the output columns are labelled "LWP" .

I don't have that. How did you get it?

> What does that column mean? Is this the number of threads inside the process?

Wikipedia says it means light weight process,
http://en.wikipedia.org/wiki/Light-weight_process

Lew Pitcher

unread,
Sep 25, 2010, 11:53:26 AM9/25/10
to
On September 25, 2010 03:01, in comp.unix.questions, pete...@andres.net
wrote:

"LightWeight Process id" http://www.unixtop.org/man.shtml

It is the thread id for the thread within the process, in a multi-threaded
process.

"The display of individual threads can be toggled with the synonymous
commands t and H. Information about state, priority, CPU time and per-
cent CPU are shown for each individual thread. Other information is
identical for all threads in the same process. In this display the
column LWP replaces NLWP and shows the lightweight process id. The
column names LWP and NLWP are consistent with ps(1)."


--
Lew Pitcher
Master Codewright & JOAT-in-training | Registered Linux User #112576
Me: http://pitcher.digitalfreehold.ca/ | Just Linux: http://justlinux.ca/
---------- Slackware - Because I know what I'm doing. ------


mjt

unread,
Sep 26, 2010, 10:45:25 AM9/26/10
to
On 25 Sep 2010 07:01:39 GMT
pete...@andres.net (Peter Hanke) wrote:

That column doesn't exist on my 'top'.

user@machine~> man top

Press the slash key, '/', and search for "columns".

--
At any given moment, an arrow must be either where it is or where it is
not. But obviously it cannot be where it is not. And if it is where
it is, that is equivalent to saying that it is at rest.
-- Zeno's paradox of the moving (still?) arrow
<<< Remove YOURSHOES to email me >>>

Message has been deleted

Lew Pitcher

unread,
Feb 14, 2013, 7:26:14 PM2/14/13
to
On February 12, 2013 10:52, in comp.unix.questions, fabric...@gmail.com
wrote:
> dghfg

Asked, and answered, in 2010

--
Lew Pitcher
"In Skills, We Trust"

0 new messages