introduced a limit on the number of active threads