OperatingSystemLinux.current_process

OperatingSystemLinux.current_process(cpu_num)[source]

Retrieve the current process.

Retrieve the process that is currently running on the given vCPU.

Parameters

cpu_num (int) – Try to retrieve the process that is currently running on the vCPU with the number cpu_num.

Returns

A representation of the process.

Return type

object