Home » Linux Listing all threads for specific process

Linux Listing all threads for specific process

by Online Tutorials Library

Listing all threads for specific process

When a process hangs, we may get the number of threads with option L.

To know the thread of a process we have to provide its PID as argument.

Syntax:

Example:

ps -L 3801

threads1

Look at the above snapshot, LWP stands for light weight process.

PID is same for all the process, but LWP showing number of threads have different values.

You may also like