Linux thread, process writing