<div dir="ltr"><div><div>Hi there,<br><br>I have read about links and monitors in Erlang and think I'm beginning to understand how they work. I'm a bit curious how they are implemented though. <br><br>1. It seems to me that for a link between two processes P1 and P2, two OTHER processes are needed, one watching over P1 and one watching over P2. Is this how Erlang implements links?<br><br></div><div>2. It seems to me that a monitor is also a kind of process. Is it a regular Erlang process of the kind you can spawn yourself?<br></div><div><br></div><div>3. Related: If Erlang didn't have link/1 and monitor/2 as BIFs, could they be implemented in Erlang, or are they true language primitives?<br><br></div><div>4. Related: If Erlang had only monitor/2, could link/1 somehow be implemented in terms of it? <br><br></div><div>Thanks,<br></div><div>Torbjörn<br></div><div><br></div></div></div>