create_pset - Creates a processor set
#include <sys/types.h> #include <sys/processor.h>
int create_pset(
void );
Pset Library (libpset)
Mach Library (libmach)
The create_pset() function creates an empty processor set.
Processes that are assigned to an empty processor set cannot
run until a processor is assigned to the set. You must
have root privileges.
If the create_pset() function completes successfully, it
returns a positive integer, which uniquely identifies the
processor set. If the create_pset() function does not
complete successfully, it returns a negative number. Use
the print_pset_error() function to print a descriptive
error message.
Processor set creations are logged in the /var/adm/wtmp
file.
/var/adm/wtmp
destroy_pset(3), assign_cpu_to_pset(3),
assign_pid_to_pset(3), print_pset_error(3), processor_sets(4), pset_create(1)
create_pset(3)
[ Back ] |