How to get the thread number and every thread's ID of a running process?

Pierre Abbat phma at leaf.dragonflybsd.org
Tue Jun 25 19:34:02 PDT 2019


On Tuesday, 25 June 2019 21.11.07 EDT Nan Xiao wrote:
> Hi all,
> 
> Greeting from me!
> 
> I am a new user of DragonflyBSD, and want to know if there is some
> method to get the thread number and every thread's ID of a running
> process? I try to explore "/proc/$pid" directory, but can't find
> related information. I also can't find out-of-box API to fulfill these
> functions.
> 
> Could anybody give some hints? Thanks very much in advance!

If the process is on top, type "H" while running top.

Type "ps aux -H". The output is wider than 80 characters, so hit the maximize 
button on your xterm first.

Pierre
-- 
Jews use a lunisolar calendar; Muslims use a solely lunar calendar.






More information about the Users mailing list