I believe the definition of _SC_NPROCESSORS_ONLN is that it returns a system-wide value. So it would be wrong for it to be affected by sched_setaffinity on a particular process. Thanks, Roland