29 Jun
2004
29 Jun
'04
12:07
tisdag 29 juni 2004 11:51 skrev Philip J. Mucci:
retval = sched_setaffinity(0,sizeof(cpumask_t),&mask);
A very quick peek at the man page for sched_affinity, reveals what should be parameter #1. Take a carefull look, then tell us what process has ID #0. NAME sched_setaffinity, sched_getaffinity - set and get a pro cess's CPU affinity mask SYNOPSIS #include <sched.h> int sched_setaffinity(pid_t pid, unsigned int len, unsigned long *mask); int sched_getaffinity(pid_t pid, unsigned int len, unsigned long *mask); ....