| ▲ | hackyhacky 2 hours ago | |
> You wouldn't implement the "plus 2" program in an actor system this way, because of race conditions. Can you explain how a serially-executed "increment" message in an actor system, as I've described above, would cause a race condition? In an OOP system you could do the same, you'd just have to build the thread-safe message queue yourself. In actor languages it's built in. There are cases where you can get race conditions in actor languages, but I'm pretty sure this isn't one. | ||