|
Standard C Library Functions | getcpuid(3C) |
| getcpuid, gethomelgroup - obtain information on scheduling decisions |
SYNOPSIS
|
#include <sys/processor.h>
processorid_t getcpuid(void); |
| lgrpid_t gethomelgroup(void); |
|
The getcpuid() function returns the processor ID on which the calling thread is currently executing.
The gethomelgroup() function returns the home latency group ID of the calling thread.
|
|
Both the current CPU and the home latency group are subject to change at any time, so the value returned by these functions might already be incorrect upon completion of the call.
|
|
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Stable |
MT-Level | MT-Safe |
|
|
psradm(1M), psrinfo(1M), psrset(1M), p_online(2), processor_bind(2), processor_info(2), pset_assign(2), pset_bind(2), pset_info(2), meminfo(2), sysconf(3C), attributes(5)
|
| |