How can I retrieve the following processor stats?

Viewed 1844

How can I retrieve:

i) Number of total processes ii) Number of total threads

Note by "total" I mean the total number in use not the total supported by the system.

I am specifically asking for an Objective-C/C solution on OSX.

3 Answers
Related