Document that 'max' should be the maximum number of threads