multi thread write