netdev
[Top] [All Lists]

Regarding Concurrent accept() in Linux

To: netdev@xxxxxxxxxxx
Subject: Regarding Concurrent accept() in Linux
From: n.srinivasan@xxxxxxxx
Date: Mon, 07 Jun 2004 21:20:56 +0500
Priority: normal
Sender: netdev-bounce@xxxxxxxxxxx
Hi,

I read on the net that Linux supports concurrent accept(). Does this mean that 
two threads can call accept() on the same socket and dequeue a connection 
almost in parallel? Having looked at the code (2.6.6), I guess tcp_accept() 
routine grabs a lock before dequeueing the eager connection. I guess this is 
the point it gets serialised. If this is the case, there isnt much difference 
from the BSD code. Or is concurrent accept() a different feature altogether.

Cheers,

Cheenu.



<Prev in Thread] Current Thread [Next in Thread>
  • Regarding Concurrent accept() in Linux, n . srinivasan <=