Re: Sockets programming question



In article
<a882f44a-b35e-49a5-a7ee-2a0048e7c28f@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
dgiaimo <dgiaimo@xxxxxxxxx> wrote:

Hi all,

I'm currently working on writing a multi-threaded server application
on linux and I have a question about how linux handles it when one
thread attempts to write to a TCP socket while another thread is
reading from it, or vice-versa. Does the kernel serialize these
accesses or do they take place in parallel?

Thanks,
Dan Giaimo

They will happen in parallel. A TCP connection is really two distinct
connections, one in each direction. Except for some magic at setup and
teardown time, the two connections pretty much don't interact with each
other at all.
.



Relevant Pages

  • Re: Linux (Suse) TS ?
    ... I'd need to run secure connections back to the corporate network. ... > knoppix cd's, the various thin client linux distros, the LTSP project etc ... this first step display updates were alright, ... have their data volume on your server. ...
    (alt.os.linux.suse)
  • Re: Problem with X server
    ... I have inserted my hostname where it says "hostname" and verified with ... and they can pop video display windows just fine. ... By default the X display does not listen for network connections, it allows local connections using a UNIX domain socket. ... If you have DISPLAY set to:0 clients will connect on the UNIX socket, but if you specify a hostname then the connection will be done on a TCP socket. ...
    (RedHat)
  • Re: Sharing a Share ?
    ... are too MANY users and access to the shared drives blocked. ... A partial solution seems to lie in linux. ... I created a Samba ... So using your Linux box to multiplex indirect connections is a no-no. ...
    (alt.linux)
  • Re: midi compatibility problem
    ... resurrected an old Technics KN800 keyboard, and connected it to an EMU ... 0404 USB interface (on a linux system, ... But to the midi - I remembered the cheap keyboard my wife keeps hidden away, which turned out to have midi connections. ...
    (comp.music.midi)
  • Re: Questions about using two Satelite uplinks
    ... Set up linux on ... connections. ... The other two NICs, eth3 ... The Hughes Net tech support guy seems to ...
    (comp.os.linux.misc)