top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

OS: How I can see number of threads belong one process running in machine ?

+2 votes

Which option is used in "ps" command to get the details on running threads associated to a process ?

posted Nov 20, 2016 by Neeraj Mishra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+2 votes

One process may have multiple threads to speed up the execution.
$ps -Lf
Here L option provides like of running threads associated to a process.

answer Nov 21, 2016 by Harshita
+1 vote
ps -T -p PID
answer Nov 21, 2016 by Chirag Gangdev
Similar Questions
0 votes

I heard the term "worker thread" and other types of threads such as "system thread" and "user thread".
For me a thread is nothing but a lite weight process and multi-threaded design is chosen for a software development when there are multiple task in the application/system and those tasks can be executed independently.
I want to know when these different terms are used like worker thread, user thread and system thread ?

0 votes

In multiprocessing operating system each processor takes a process individually or divide each process for the multiple processors?
In multiprocessing operating response time increases decreases or not effected?

Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.