pcntl_getcpu
(No version information available, might only be in Git)
pcntl_getcpu — Get the CPU number on which the calling process last executed
Description
pcntl_getcpu() returns the number of the CPU on which
the calling process was last executed. This function uses the
sched_getcpu(3) system call available on Linux.
Parameters
This function has no parameters.
Return Values
Returns the CPU number as an int.
See Also
- pcntl_getcpuaffinity() - Get the cpu affinity of a process
- pcntl_setcpuaffinity() - Set the cpu affinity of a process
+add a note
User Contributed Notes
There are no user contributed notes for this page.