Maximum number of threads = num_cores * 5