An OS with no threads - The Actor Model

29 points by xyproto


alandekok

Other OS's have done message passing before, e.g. QNX. IIRC, they were much slower than monolithic kernels on the same hardware.

I'd also be concerned about the lack of preemption. Cooperative scheduling doesn't have a good track record. There are many work items which can consume large amounts of CPU and memory without needing to wait for external input.

I would suspect that it's relatively easy to add preemption to this OS, but more difficult to make it safe for dependency loops. Perhaps it would help if the actors had declared statically what kind of messages they sent, and to who. That would let the OS order the dependencies better.

If the actor model is taken to the extreme, it could become a lot easier to embed apps within apps, which was a promise of various systems long ago.