*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: pthread_curcpu_np | Section: 3 | Source: NetBSD | File: pthread_curcpu_np.3
PTHREAD_CURCPU_NP(3) FreeBSD Library Functions Manual PTHREAD_CURCPU_NP(3) NAME pthread_curcpu_np - get current CPU identifier SYNOPSIS #include <pthread.h> unsigned int pthread_curcpu_np(void); DESCRIPTION The 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 VALUES The pthread_curcpu_np() function returns the integer identifier of the CPU which is currently running the calling thread. COMPATIBILITY The pthread_curcpu_np() function is a non-standard extension. SEE ALSO affinity(3), pthread(3) FreeBSD 14.1-RELEASE-p8 November 10, 2011 FreeBSD 14.1-RELEASE-p8

Navigation Options