getProcesses

open override fun getProcesses(): List<OSProcess>

Retrieves the list of all active processes on the system.

Return

A list of OSProcess objects representing the running processes.


open override fun getProcesses(pids: Collection<Int>): List<OSProcess>

Retrieves the list of processes specified by their PIDs.

Return

A list of OSProcess objects for the specified processes.

Parameters

pids

A collection of PIDs of the processes to retrieve.