pthread_processor_bind_np.3t (2010 09)

p
pthread_processor_bind_np(3T) pthread_processor_bind_np(3T)
(Pthread Library)
NAME
pthread_processor_bind_np(), pthread_num_processors_np(), pthread_processor_id_np(),
pthread_num_ldoms_np(), pthread_num_ldomprocs_np(), pthread_spu_to_ldom_np(),
pthread_ldom_bind_np(), pthread_ldom_id_np(), pthread_pset_bind_np() - determine how many proces-
sors are available, bind threads to processors, and determine processor IDs; determine how many locality
domains are available, bind threads to locality domains, and determine locality domain IDs; change
thread’s processor set binding
SYNOPSIS
#include <pthread.h>
int pthread_num_processors_np(void);
int pthread_num_ldoms_np(void);
int pthread_num_ldomprocs_np(
int *answer,
pthread_ldom_t ldom
);
int pthread_processor_id_np(
int request,
pthread_spu_t *answer,
pthread_spu_t spu
);
int pthread_ldom_id_np(
int request,
pthread_ldom_t *answer,
pthread_ldom_t ldom
);
int pthread_spu_to_ldom_np(
pthread_spu_t spu,
pthread_ldom_t *ldom
);
int pthread_processor_bind_np(
int request,
pthread_spu_t *answer,
pthread_spu_t spu,
pthread_t tid
);
int pthread_ldom_bind_np(
pthread_ldom_t *answer,
pthread_ldom_t ldom,
pthread_t tid
);
int pthread_pset_bind_np(
psetid_t *answer,
psetid_t pset,
pthread_t tid
);
PARAMETERS
request This parameter determines the precise action to be taken by these functions.
answer This parameter is an output parameter in which values are returned. The meaning of
answer depends on request parameter.
spu This parameter gives the value of the spu for certain requests.
ldom This parameter gives the value of the locality domain for certain requests.
tid This parameter gives the value of the thread id for certain requests.
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (6 pages)