change working mechanism, add one reader thread and one writer thread