[erlang-questions] how erlang handle multiple processes accepting on a socket?

Max Lapshin max.lapshin@REDACTED
Sat Jun 14 09:59:34 CEST 2014


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140614/1b3b1a9b/attachment.htm>


More information about the erlang-questions mailing list