title: Java sockets: can you send from one thread and receive on another?
body: <p>This is probably an extremely basic question but I'm having difficulty finding an answer.</p>
  
  <p>Is it ok to have one thread writing to a Socket's output stream while another thread is reading from the Socket's input stream?</p>
  
  <p>Edit: This is a client application that is speaking to an external server.  I am not trying to make the two threads talk to each other.  Sorry for the ambiguity.</p>