Javatpoint Logo
Javatpoint Logo

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.






Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA