search for: set_my_prior

Displaying 1 result from an estimated 1 matches for "set_my_prior".

2005 Jan 21
1
niceness
....gz ----- begin C code file ----- #include <sys/resource.h> #include <errno.h> #include <string.h> #include <R.h> void get_my_priority(int *result) { errno = 0; result[0] = getpriority(PRIO_PROCESS, 0); if (errno != 0) warning(strerror(errno)); } void set_my_priority(int *priority) { if (setpriority(PRIO_PROCESS, 0, priority[0]) != 0) warning(strerror(errno)); } ------ end C code file ------ -- Charles Geyer Professor, School of Statistics University of Minnesota charlie at stat.umn.edu