safe reader and writer. multithreaded server.