#!/bin/sh # Shave and a Haircut # (c) 2019 Epic Games # US Patent 6720962 # How many processors do we have? numprocs=`grep '^processor' /proc/cpuinfo | wc -l` # We use two jobs per processor, so that one can be using the processor # while another is waiting for disk I/O. echo $((${numprocs} * 2))