flâneur — a map of the web's best reading

More On Multiprocessing | Learn You Some Erlang for Great Good!

learnyousomeerlang.com · 2,690 words · saved by 1 readers

Additional concepts about multiprocessing in Erlang. Includes examples on how to keep state, avoid locks with timeouts and how to handle selective receives.

More On Multiprocessing | Learn You Some Erlang for Great Good! Learn you some Erlang for great good! Home FAQ RSS Code More On Multiprocessing State Your State The examples shown in the previous chapter were all right for demonstrative purposes, but you won't go far with only that in your toolkit. It's not that the examples were bad, it's mostly that there is not a huge advantage to processes and actors if they're just functions with messages. To fix this, we have to be able to hold state in a process. Let's first create a function in a new kitchen.erl module that will let a process act like

Explore this link on the map →

saved by

related reading