Upgrade thread and thread pool