[erlang-questions] A Question About Processes

Dimitar Haralanov <>
Tue Mar 22 10:27:07 CET 2016


Yes, it makes sense now - it’s the PID of the shell itself.

Thank you all for your time and help!

— Dimitar

> On Mar 22, 2016, at 12:19 AM, Kostis Sagonas <> wrote:
> 
> On 03/21/2016 10:35 PM, Dimitar Haralanov wrote:
>> My question is - how is the process with PID <0.33.0> spawned? I’ve only read about
>> using the erlang:spawn() function call, but I guess there are other implicit ways of starting
>> new processes. Any further clarification would be really helpful. Thank you!
> 
> This is the `shell' process: the process that runs the shell where you type your commands.  In your example, rather than calling foo:bar() as the first command, issue a self() call first and you notice the printed PID and the PID that you get when you subsequently call foo:bar().
> 



More information about the erlang-questions mailing list