Erlang / Erlang Basics Interview questions
What is hot code loading?
Hot code loading (or hot code swapping) is the BEAM's ability to load a new version of a module into a running system without stopping it. The runtime can keep two versions of a module in memory at once: the old version, still running for processes mid-execution, and the new version for anything freshly called.
Processes that were running old code keep running it until they make a fully-qualified call back into their
own module (e.g. ?MODULE:loop(State)), at which point they switch to the new version. This
"purge on next reference" model is why long-running server loops are typically written to explicitly call
back into themselves.
This capability is what let early telecom switches be patched for bug fixes without dropping active calls, and it's still used today for rolling upgrades in systems that can't tolerate downtime.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
