Queue-based resource pool for Thread