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

Deadlock example revisited

So far, we have looked at the actors model at a glance. We have not learned any practical implementations of the actor model just yet. However, it can be instructive to take a look at how our previous example can be implemented so that we are rid of the complexity that we have faced with it.

First of all, we have discussed that actors are primitives of concurrency of the actors model. In the preceding example, the primitives of concurrency were two threads that performed some operations. So, it is reasonable to map the operations that we need to perform from the two threads onto two actors of the actor model. So now, instead of two threads, we have two actors. One actor is supposed to generate JSON from CSV, and ...

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