pthread_curcpu_np man page on NetBSD

Man page or keyword search:  
man Server   9087 pages
apropos Keyword Search (all sections)
Output format
NetBSD logo
[printable version]

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 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)

BSD			       November 10, 2011			   BSD
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server NetBSD

List of man pages available for NetBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net