👤
Home Man
Search
Today's Posts
Register

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:
Select Section of Man Page:
Select Man Page Repository:

NetBSD 6.1.5 - man page for pthread_curcpu_np (netbsd section 3)

PTHREAD_CURCPU_NP(3)		   BSD 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 cur-
     rently 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 cur-
     rently running the calling thread.

COMPATIBILITY
     The pthread_curcpu_np() function is a non-standard extension.

SEE ALSO
     affinity(3), pthread(3)

BSD					November 10, 2011				      BSD


All times are GMT -4. The time now is 03:14 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?