Check nprocs before attempting a context switch