Query: pthread_curcpu_np
OS: netbsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PTHREAD_CURCPU_NP(3) BSD Library Functions Manual PTHREAD_CURCPU_NP(3)NAMEpthread_curcpu_np -- get current CPU identifierSYNOPSIS#include <pthread.h> unsigned int pthread_curcpu_np(void);DESCRIPTIONThe pthread_curcpu_np() function provides a way for a thread to know which CPU it's currently running on. Note that, unless the thread is bound to a specific CPU, the result might be already stale when the function returns. However, it still can be useful as a hint to achieve better CPU locality.RETURN VALUESThe pthread_curcpu_np() function returns the integer identifier of the CPU which is currently running the calling thread.COMPATIBILITYThe pthread_curcpu_np() function is a non-standard extension.SEE ALSOaffinity(3), pthread(3)BSDNovember 10, 2011 BSD
Related Man Pages |
---|
pthread_attr_getaffinity_np(3) - linux |
cpuset_isset(3) - netbsd |
cpuset_clr(3) - netbsd |
cpuset(3) - netbsd |
cpuset_zero(3) - netbsd |
Similar Topics in the Unix Linux Community |
---|
Unix File Permissions |
Memory Leaks |
How to install PGX32 on Sparc 10 Ultra? |
Adding a List of Times |
BSD Unix Toolbox: 1000+ Commands for FreeBSD, OpenBSD, and NetBSD |