add ReadThread SelectRead function.