pthread implemetation, i/o operation