[Haskell-cafe] Haskell vs. Erlang: Logging to one thread from thousands /Answer/

Joel Reymont joelr1 at gmail.com
Tue Jan 3 08:37:34 EST 2006

I asked the Erlang guys why I can log to a single process in Erlang
without any problems. The scheduler could well be round-robin
but since the message queue is hard-wired to each Erlang process
they found an elegant way out.

There is a small fix in the scheduler for the standard
producer/consumer problem: A process that sends to a
receiver having a large receive queue gets punished
with a large reduction (number of function calls)
count for the send operation, and will therefore
get smaller scheduling slots.

	Thanks, Joel


More information about the Haskell-Cafe mailing list