paralleldomain.utilities.os

cpu_count()

Returns CPU count. If process is running inside a (Docker) container, it returns the allocated virtual CPU count.

Return type:

int

is_container()

Returns True if process is running inside a (Docker) container.

Return type:

bool