Using queue in Thread Pool pattern