pub fn cpus_for(count: usize) -> usizeExpand description
How many processes music21 runs at once on a machine with this many processors: one fewer than there are, leaving one free, from three up.
use music21::common::parallel::cpus_for;
assert_eq!(cpus_for(8), 7);
assert_eq!(cpus_for(2), 2);