How to avoid thread pool induced deadlocks? Thread pools are very powerful, but used unwisely can even cause deadlocks.