pthread sample update