use thread to call DealTheClient and change thread.sleep to thread.spinwait