add read and write in multiple threads