Get the latest tech news

An OS with no threads: The Actor Model


If you read my last post, you know that I’m making my own OS, DbgOS. If you haven’t read that, the short version is that I’m making an OS from scratch in Rust so I can try different ideas in OS design and learn new things by making strange choices. This time I want to talk about the decisions around how the OS deals with concurrency. Long the bane of our existence, concurrency bugs are hard to find, hard to analyze, and very easy to make. Over the past 50+ years, we’ve invented many schemes to completely avoid this class of bugs, and many of them revolve around eliminating shared state. One such model is the actor model, which originated in a 1973 paper by Carl Hewitt, Peter Bishop, and Richard Steiger. The unit of concurrency here is (unsurprisingly) an “actor”. Each actor operates independently, has its own mailbox, and can send messages to other actors, but cannot share data any other way. The actor model is often associated with Erlang, although the Erlang designers weren’t explicitly drawing on this paper as a reference. But it did show that large scale systems could work in an actor style of concurrency.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Threads

Threads

Photo of actor model

actor model

Related news:

News photo

Threads goes all in on communities: new ways to find and bring people together roll out

News photo

Threads will let you suggest and vote for new communities

News photo

Threads now lets users propose and vote on new communities, adds recommendations