getProcesses
Retrieves the list of all running processes on the operating system.
Return
A list of all OSProcess
objects representing the running processes.
Retrieves the list of processes specified by their process IDs.
Return
A list of OSProcess
objects corresponding to the given process IDs.
Parameters
pids
A collection of process IDs to fetch the processes.