Thread pool won't take requested cpu count into account

Created by: aroffringa

Easy to fix by adding some methods to ThreadPool, but not a priority for now.