use schedtool to determine how many threads should run