numCpus = MPProcessors();
numCpus = 1;
PR_IMPLEMENT(PRInt32) PR_GetNumberOfProcessors( void ){    PRInt32     numCpus;#if defined(WIN32)    SYSTEM_INFO     info;    GetSystemInfo( &info );    numCpus = info.dwNumberOfProcessors;#elif defined(XP_MAC)    numCpus = MPProcessors();#elif defined(BEOS)    system_info sysInfo;    get_system_info(&sysInfo);    numCpus = sysInfo.cpu_count;#elif defined(OS2)    DosQuerySysInfo( QSV_NUMPROCESSORS, QSV_NUMPROCESSORS, &numCpus, sizeof(numCpus));#elif defined(_PR_HAVE_SYSCTL)    int mib[2];    int rc;    size_t len = sizeof(numCpus);    mib[0] = CTL_HW;    mib[1] = HW_NCPU;    rc = sysctl( mib, 2, &numCpus, &len, NULL, 0 );    if ( -1 == rc )  {        numCpus = -1; /* set to -1 for return value on error */        _PR_MD_MAP_DEFAULT_ERROR( _MD_ERRNO() );    }#elif defined(HPUX)    numCpus = mpctl( MPC_GETNUMSPUS, 0, 0 );    if ( numCpus < 1 )  {        numCpus = -1; /* set to -1 for return value on error */        _PR_MD_MAP_DEFAULT_ERROR( _MD_ERRNO() );    }#elif defined(IRIX)    numCpus = sysconf( _SC_NPROC_ONLN );#elif defined(XP_UNIX)    numCpus = sysconf( _SC_NPROCESSORS_ONLN );#else#error "An implementation is required"#endif    return(numCpus);} /* end PR_GetNumberOfProcessors() */