3 ms·
Where can I find Actor-based solutions to common concurrency problems?
I was looking to compare threaded solutions using locks of common concurrency problems like dining philosophers and sleeping barber to actor based solutions in a language like Erlang.
- gtani 17y agoDon't know if this answers question, but there's lots of erlang vs. scala analyses, many of them address: number process/threads you can spawn, message size, async vs. synch, .. http://www.vijaykandy.com/archives/59 http://www.vijaykandy.com/archives/59 http://blog.ribomation.com/2009/08/06/generating-prime-numbers-with-erlang-and-java/ http://blog.ribomation.com/2009/08/06/generating-prime-numbe... http://weblog.hypotheticalabs.com/?p=452 http://weblog.hypotheticalabs.com/?p=452 http://rosettacode.org/wiki/Dining_philosophers http://rosettacode.org/wiki/Dining_philosophers
- mikhailfranco 17y agoSanta Claus in Erlang from ROK: http://www.cs.otago.ac.nz/staffpriv/ok/santa/index.htm http://www.cs.otago.ac.nz/staffpriv/ok/santa/index.htm
- mikhailfranco 17y agoSleeping Barber discussion here: http://bestinclass.wordpress.com/2009/09/17/scala-vs-clojure-round-2-concurrency/ http://bestinclass.wordpress.com/2009/09/17/scala-vs-clojure... The spec is a bit vague, but quick 'n' dirty Erlang code here: http://snipt.org/ngni http://snipt.org/ngni