Re: Sockets programming question
- From: Roy Smith <roy@xxxxxxxxx>
- Date: Sat, 25 Sep 2010 11:43:28 -0400
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.
.
- Follow-Ups:
- Re: Sockets programming question
- From: Rick Jones
- Re: Sockets programming question
- References:
- Sockets programming question
- From: dgiaimo
- Sockets programming question
- Prev by Date: Sockets programming question
- Next by Date: Re: Path Maximum Transmission Unit Discovery
- Previous by thread: Sockets programming question
- Next by thread: Re: Sockets programming question
- Index(es):
Relevant Pages
|