getProcesses

abstract fun getProcesses(): List<OSProcess>

Retrieves the list of all running processes on the operating system.

Return

A list of all OSProcess objects representing the running processes.


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

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.