Selectable number of threads