Search code examples
oopakkaactor-model

Actor model vs object oriented model


I searched in the web for a long time and couldn't find the concrete disadvantages of object oriented model which are overcome in Actor model. Please help me with some pointers and explanations on it.

Thanks in advance.


Solution

  • Disadvantages of OO model:

    1. Traditional OOP languages weren’t designed with concurrency. It was very easy to introduce race conditions since it was using a shared state.
    2. The programmers had to identify and fix all possible problem areas by using locking mechanisms.
    3. Locking is easy to implement for simple programs. But as the programs got complex, the implementation of locking has also become complex.

    Actor model overcomes the problem by using share nothing model so that concurrency is not affected and locking mechanism is not needed.