Skip to Content
Mastering Functional Programming
book

Mastering Functional Programming

by Anatolii Kmetiuk
August 2018
Intermediate to advanced
380 pages
10h 2m
English
Packt Publishing
Content preview from Mastering Functional Programming

The actor model as a replacement for the traditional model

One of the most popular approaches to dealing with the complexity discussed previously is the actor approach to concurrent programming. If you look at the preceding examples in detail, you will notice one thing about them, that is, global reasoning. Whenever we have several threads that need to communicate in one with another, we are forced to reason about them together. So, we cannot take one thread and reason about it independently from other threads.

As we saw previously, the solution to the deadlock problem was to change the order in which the monitors were taken in the second thread so that the order matched the one in the first thread. Basically, when we are working in the scope ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Functional Programming

Learning Functional Programming

Jack Widman

Publisher Resources

ISBN: 9781788620796Supplemental Content