Re: Multithread safety

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



What I meant to say is : If one thread is writing to
the socket while another one is reading to it (full-duplex),
its impossible in certain cases for the writing thread to
be notified in time by the reading thread that the socket
has been closed by the peer... So how can I write
full-duplex production code?

Thanks




.



Relevant Pages

  • Writing to file delay
    ... I am reading a file on one machine that is continuosly being written to ... socket and writing it to a file. ... file.write buff ...
    (comp.lang.ruby)
  • Re: Writing to file delay
    ... I am reading a file on one machine that is continuosly being written to ... socket and writing it to a file. ... Since you're on Linux, try stracing both the Ruby process and your tail ...
    (comp.lang.ruby)
  • Re: Multithread safety
    ... > the socket while another one is reading to it (full-duplex), ... > its impossible in certain cases for the writing thread to ...
    (microsoft.public.win32.programmer.networks)
  • Re: Suggestions for reading binary data from a connected socket.
    ... >to find an example explaining the best solution for reading and writing a ... >message from a socket. ...
    (comp.lang.java.programmer)
  • Re: Writing to file delay
    ... I am reading a file on one machine that is continuosly being written to ... socket and writing it to a file. ... NotImplementedError is raised if the underlying operating system does ...
    (comp.lang.ruby)