Skip to contentSkip to conversation

Regarding Concurrent accept() in Linux

DISCUSSION [email protected] 1 participant 1 message Jun 7, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.