Elixir in Depth – Reading and personal notes
The author doesn&#x27;t talk a lot about preemptive scheduling, which is probably the best thing about the Erlang virtual machine. This video explains what preemptive scheduling is and why it is extremely useful: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=5SbWapbXhKo" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=5SbWapbXhKo</a><p>First, the speaker creates an application endpoint that runs into an infinite loop on invalid input. Then, he shows how that doesn&#x27;t block the rest of the requests. Using native BEAM (EDIT: BEAM = EVM = Erlang Virtual Machine) tools, he looks for the misbehaving process (the one running the infinite loop), prints some debug information and kills it. It&#x27;s pretty impressive.<p>Another great (and lighter) resource, is &quot;Erlang the Movie&quot; (<a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=xrIjfIjssLE" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=xrIjfIjssLE</a>). It shows the power of concurrency through independent processes, the default debug tools, and the power of hot code reloading. Don&#x27;t miss the twist at the end.