advanced thread pools with dynamic adjustment