use same number of processes as threads