ID EN
OS

getloadavg

Python 3.11

Return the number of processes in the system run queue averaged over the last 1, 5, and 15 minutes or raises OSError if the load average was unobtainable.

Syntax

PYTHON
os.getloadavg()

See Also

OSError Availability