|
|
|
|
|
by glic3rinu
3024 days ago
|
|
With the actor model you don't share state between threads, hence no need to lock anything. Each variable can only be updated by a single and unique thread. If another thread (or actor) wants to modify it, it has to send a modification request messages to that one thread to do the job. That's quite a difference! Edit: Java threading model is fine for limited amounts of concurrency. Complexity escalates quickly with highly concurrent applications; the actor model makes reasoning about those programs far easier. |
|