This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: issue with ServerSocket::accept
>>>>> "David" == David Daney <ddaney@avtrex.com> writes:
David> It is my understanding that multiple threads can be in accept() on the
David> same socket. When a connection arrives, the OS chooses one of
David> waiting threads and its accept() returns. That is not to say that it
David> is necessarily a good idea, but I think it is legal.
Yeah, web servers use this feature to implement preforking.
IMO we ought to support it if possible.
Tom