simulator: Allow configuring total number of threads