An OS with no threads: The Actor Model
Trending on Hacker News: An OS with no threads: The Actor Model (265 points / 139 comments, via timdbg.com)
In one line
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.
Opening excerpt
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.
(Excerpted from the original; full article via the source link below.)
This story hit the Hacker News front page today (265 points / 139 comments, via timdbg.com). Our Tech Radar aggregates daily signals on AI engineering, backend architecture and DevOps — browse the related services and further reading below, or get in touch with our team.
Source: Hacker News