From: loats205@... (loats205) Date: 2003-08-26T16:46:40+09:00 Subject: Re: Sockets and threads >From: "Mark J. Reed" >Probably a dumb question, but here goes: > >If I have a TCPSocket object that is being used by two threads, >one of which only reads from it while the other only writes to it, >does access to the object need to be synchronized? > >I know that access to the two directions of a Socket in Java >are independent for this purpose, but wanted to check to see >if the same was true in Ruby. > >Thanks! > >-Mark Its the same, the only thing the 2 streams of a tcp socket really share is a number. Theres no underlying dependence.