socket question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a socket and two threads which
syncronize their access to the socket
by means of spinlocks and never sleep
while accessing the socket. I.e.
R0 and W1 are synchronized in terms
of their access on the socket.


R0                        W0
  \     duplex pipe      /
   +====================+
  /                      \
W1                        R1

My question is if data written
by W1 and data read by R0
will serialize accross the whole
connection to (R1, W0)?

I.e. does the socket have two distinct
read and write buffers? (?)

Thanks,
-- 
Luben
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux