mutex_file.lock() ;file. seek(pos) ;file. read(but, size_block) ;mutex_file.unlock() ;
mutex_file.lock() ;file. seek(end_file) ;file.write(buf, size_buf);mutex_file.unlock() ;