Universial nr_threads parsing