sleep api
thread test