The Actor Model

When you have to do things concurrently in an application, the first thing that comes to mind is usually: “I’ll use a thread!”. Usually, if you’re lucky enough, this is followed by: “But threads are a pain…”.

I recently studied an interesting alternative at the university: the Actor Model. This model provides a manageable alternative to threads and locking. The prime example of an actor model implementation is Erlang, which is getting very popular these days.

Anyway, as part of this course, I wrote a paper discussing the concurrency in Erlang and Scala (which also uses the actor model). If you’ve ever fought with threads and wished there would be an alternative, this might be interesting for you:

Concurrency in Erlang and Scala: The Actor Model

Related and also interesting are the slides of this course, which also discuss communicating event loops (similar to the GLib events).

This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

One Response to The Actor Model

  1. John says:

    If the Actor model is of interest to you then it might be worth visiting http://www.connectivelogic.co.uk. This technology implements something similar to actors but uses a visual programming language to manage conmmunication and synchronization. I hope this will be of interest

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>