0

Command-line Number of thread per process on MacOS

This question is about the thread of a process. I want to get the total number of threads on Mac. Can anybody show me the command to get this number?

1 Answers1

0

There is a command in Mac that does this. Type ‘top’ in the terminal. Then, every second it refreshes the thread number and all the processes it runs and all the specific information. Use:

top -s (number)

to specify that it refreshes every (number) seconds.