I am searching for an API to get the list of processes running on the system (including the process launched by other users on the system).
I see lot of questions are already raises. But It was older questions.
- Question 1  - which answers to use 
pscommand and parse the output. NSWorkspaceprovidesrunningApplications- which returns the processes under the current user.
Is there any API introduced in the recent updates to get all processes running on the system?