An OS with no threads: The Actor Model
Hacker News 热议:An OS with no threads: The Actor Model(265 赞 / 139 评论,来源 timdbg.com)
一句话概要
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.
原文开头节选
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.
(以上为原文节选,完整内容见下方”原文来源”)
这条动态今日登上 Hacker News 首页(265 赞 / 139 评论,来源 timdbg.com)。技术雷达每日自动聚合 AI 工程、后端架构、DevOps 方向的前沿动态;相关工程落地可浏览下方的相关服务与延伸阅读,或直接与我们团队交流。
原文来源: Hacker News