scalaerlangdeadlockactor

Deadlocks in Actor based Programming languages


Can a deadlock still occur in actor-based languages like Scala or Elixir? If yes, how to detect and avoid them?


Solution

  • In Erlang it is possible. You can have 2 processes both waiting for the other to send a message. In general, this is not a major issue.

    but in most cases, you would have to work to make it happen.