simplified thread pool.
better pending queue.