[erlang-questions] how erlang handle multiple processes accepting on a socket?
Benoit Chesneau
bchesneau@REDACTED
Sat Jun 14 10:30:06 CEST 2014
On Sat, Jun 14, 2014 at 10:25 AM, Benoit Chesneau <bchesneau@REDACTED>
wrote:
>
>
>
> On Sat, Jun 14, 2014 at 9:59 AM, Max Lapshin <max.lapshin@REDACTED>
> wrote:
>
>> Driver remembers what processes have asked to notify them about new
>> connection.
>>
>> When new client comes, driver looks for next waiting process, send
>> message to it and removes his record from list of waiting processes.
>>
>> So, nothing magic. Driver is single threaded, but it is scheduled
>> independently from other processes.
>>
>
> So afaik accepting is only done in one thread right?
>
hrmm or does it notify them about a read event and let them accept?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140614/2fabab2f/attachment.htm>
More information about the erlang-questions
mailing list