Scheduling overwhelmingly many tasks on a dynamically varying number of cores