Set the maximum number of threads used for analysis.