Ask a Question related to Ruby, Design and Development.
-
Mark J. Reed #1
Sockets and threads
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
Mark J. Reed Guest
-
how to use xmlSocket with cfc sockets?
Are there any flash examples out there that can call a function from a cfc socket gateway (thats defined in the CFadmin Gateway Instances using the... -
IO::Sockets
Hi I am trying to use sockets to have a server that takes a message then returns down the socket that it was ok and give back an id. I can get... -
Sockets
Does anyone know how to disconnect a particular socket connection. I can grep out netstat for the connection and use lsof to get a list of pids... -
WSE 2.0TP using raw sockets
I am creating a windows application using C# and WSE 2.0 preview. The application registers a soap receiver and waits for incoming messages on a... -
sockets, events, and threads
Hello - I am coding a client/server app using sockets. I set the server socket descriptor to non-blocking, as well as the clients after accept(). ... -
loats205 #2
Re: Sockets and threads
>From: "Mark J. Reed"
Its the same, the only thing the 2 streams of a tcp socket really share is a>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
number. Theres no underlying dependence.
loats205 Guest



Reply With Quote

