Adjust number of threads based on prune top