Call getNumProcessors once