set/get CPU affinity attribute in thread attributes object NAME pthread_attr_setaffinity_np, pthread_attr_getaffinity_np - set/get CPU affinity attribute in thread attributes objec…set/get CPU affinity attribute in thread attributes object NAME pthread_attr_setaffinity_np, pthread_attr_getaffinity_np - set/get CPU affinity attribute in thread attributes objec…...ead_attr_destroy"); } pause(); /* Terminates when other thread calls exit() */ } SEE ALSO pthread_attr_setaffinity_np (3), pthread_attr_setdetachstate (3), pthread_attr_setguard…...ead_attr_destroy"); } pause(); /* Terminates when other thread calls exit() */ } SEE ALSO pthread_attr_setaffinity_np (3), pthread_attr_setdetachstate (3), pthread_attr_setguard…create a new thread NAME pthread_create - create a new thread LIBRARY POSIX threads library ( libpthread , -lpthread ) SYNOPSIS #include <pthread.h> int pthread_create(pthread_t *r…...intf(" CPU %zu\n", j); exit(EXIT_SUCCESS); } SEE ALSO sched_setaffinity (2), CPU_SET (3), pthread_attr_setaffinity_np (3), pthread_self (3), sched_getcpu (3), cpuset (7), pthrea…...intf(" CPU %zu\n", j); exit(EXIT_SUCCESS); } SEE ALSO sched_setaffinity (2), CPU_SET (3), pthread_attr_setaffinity_np (3), pthread_self (3), sched_getcpu (3), cpuset (7), pthrea…...t the default contention scope is implementation-defined. SEE ALSO pthread_attr_init (3), pthread_attr_setaffinity_np (3), pthread_attr_setinheritsched (3), pthread_attr_setsche…...t the default contention scope is implementation-defined. SEE ALSO pthread_attr_init (3), pthread_attr_setaffinity_np (3), pthread_attr_setinheritsched (3), pthread_attr_setsche…get number of processors NAME get_nprocs, get_nprocs_conf - get number of processors LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <sys/sysinfo.h> int get_nprocs(void…get number of processors NAME get_nprocs, get_nprocs_conf - get number of processors LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <sys/sysinfo.h> int get_nprocs(void…get or set default thread-creation attributes NAME pthread_getattr_default_np, pthread_setattr_default_np, - get or set default thread-creation attributes LIBRARY POSIX threads lib…get or set default thread-creation attributes NAME pthread_getattr_default_np, pthread_setattr_default_np, - get or set default thread-creation attributes LIBRARY POSIX threads lib…set/get signal mask attribute in thread attributes object NAME pthread_attr_setsigmask_np, pthread_attr_getsigmask_np - set/get signal mask attribute in thread attributes object LI…set/get signal mask attribute in thread attributes object NAME pthread_attr_setsigmask_np, pthread_attr_getsigmask_np - set/get signal mask attribute in thread attributes object LI…get attributes of created thread NAME pthread_getattr_np - get attributes of created thread LIBRARY POSIX threads library ( libpthread , -lpthread ) SYNOPSIS #define _GNU_SOURCE /*…set/get guard size attribute in thread attributes object NAME pthread_attr_setguardsize, pthread_attr_getguardsize - set/get guard size attribute in thread attributes object LIBRAR…set/get guard size attribute in thread attributes object NAME pthread_attr_setguardsize, pthread_attr_getguardsize - set/get guard size attribute in thread attributes object LIBRAR…set/get the read-write lock kind of the thread read-write lock attribute object NAME pthread_rwlockattr_setkind_np, pthread_rwlockattr_getkind_np - set/get the read-write lock kind…set/get the read-write lock kind of the thread read-write lock attribute object NAME pthread_rwlockattr_setkind_np, pthread_rwlockattr_getkind_np - set/get the read-write lock kind…