Designing for Scalability with ErlangOTP by Francesco Cesarini
Author:Francesco Cesarini
Language: eng
Format: epub
Publisher: O'Reilly Media
Published: 2016-05-27T00:00:00+00:00
Basic template for starting a special process
The recommended approach to starting a special process is to use the proc_lib:start_link(Mod, Fun, Args) call instead of the spawn_link/3 BIF. Given a module, a function, and a list of arguments, it synchronously spawns a process and waits for this process to notify that it has correctly started through the proc_lib:init_ack(Value) call. Value is sent back to the parent process, becoming the return value of the start_link/3 call. Note how we are passing optional DbgOpts debug option parameters in our start_link call. We covered them in Chapter 5. For now, assume DbgOpts is an empty list. Note also how we are passing the Parent process ID to the init/3 function; we need it in our main loop. It is the result of the self() BIF in the start_link/2 call.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
What's Done in Darkness by Kayla Perrin(25465)
Shot Through the Heart: DI Grace Fisher 2 by Isabelle Grey(18189)
Shot Through the Heart by Mercy Celeste(18136)
The Fifty Shades Trilogy & Grey by E L James(17742)
The 3rd Cycle of the Betrayed Series Collection: Extremely Controversial Historical Thrillers (Betrayed Series Boxed set) by McCray Carolyn(13157)
The Subtle Art of Not Giving a F*ck by Mark Manson(12857)
Scorched Earth by Nick Kyme(11800)
Stepbrother Stories 2 - 21 Taboo Story Collection (Brother Sister Stepbrother Stepsister Taboo Pseudo Incest Family Virgin Creampie Pregnant Forced Pregnancy Breeding) by Roxi Harding(10922)
Drei Generationen auf dem Jakobsweg by Stein Pia(10192)
Suna by Ziefle Pia(10164)
Scythe by Neal Shusterman(9227)
International Relations from the Global South; Worlds of Difference; First Edition by Arlene B. Tickner & Karen Smith(8565)
Successful Proposal Strategies for Small Businesses: Using Knowledge Management ot Win Govenment, Private Sector, and International Contracts 3rd Edition by Robert Frey(8384)
This is Going to Hurt by Adam Kay(7631)
Dirty Filthy Fix: A Fixed Trilogy Novella by Laurelin Paige(6422)
He Loves Me...KNOT by RC Boldt(5768)
How to Make Love to a Negro Without Getting Tired by Dany LaFerrière(5333)
Interdimensional Brothel by F4U(5270)
Thankful For Her by Alexa Riley(5126)