Binds a thread to a particular CPU on a multiprocessor system.
pthread_bind_to_cpu_np(
                       thread,  cpu_mask );
 
Argument         Data Type               Access
thread           opaque pthread_t        read
cpu_mask         unsigned long           read
int pthread_bind_to_cpu_np ( pthread_t thread, unsigned long cpu_mask);
Specify a cpu_mask of 0 to allow a previously bound thread to execute on any available CPU.
This routine is not available on all platforms. If it is not available, pthread_bind_to_cpu_np returns -1 and sets errno to ENOSYS.
Return Error Description0 Successful completion. -1 [EINVAL] The value specified by thread or cpu_mask is invalid. -1 [ENOSYS] The function is not supported on this system.