make some change for the thread process

Signed-off-by: Li Wang <liwan@redhat.com>