More On Multiprocessing | Learn You Some Erlang for Great Good!
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
- The Hitchhiker's Guide to Concurrency | Learn You Some Erlang for Great Good!learnyousomeerlang.com
- Designing a Concurrent Application | Learn You Some Erlang for Great Good!learnyousomeerlang.com
- Elixir, A Little Beyond The Basics - Part 6: processesopenmymind.net
- Understanding actor concurrency, Part 1: Actors in Erlang | InfoWorldinfoworld.com
- Time, Clocks, and the Ordering of Events in a Distributed Systemlamport.azurewebsites.net
- Reading 14: Concurrencyweb.mit.edu
- Transfer Data Between Threads with Message Passing - The Rust Programming Languagedoc.rust-lang.org
- How to do distributed locking - Martin Kleppmann's blogmartin.kleppmann.com
- INTELLIGENCEstacks.stanford.edu
- Processes and Threads — PlanetScaleplanetscale.com
- Reading 16: Mutual Exclusionweb.mit.edu
- Multiprocessing - Wikipediaen.wikipedia.org