In the previous parts of this series, we built a stateful process using a mailbox and then added correlated request–reply using references.
Now we have another problem.
What happens when the process we are communicating with dies?
A worker might finish normally, crash because of an exception, or terminate for some other reason.
Instead of repeatedly checking whether a process is alive, the BEAM provides process monitoring.






