|
|
| Author |
Message |
< Erlang ~ conceptual questions |
| phicarre |
Posted: Mon Mar 23, 2009 6:43 pm |
|
|
|
User
Joined: 23 Mar 2009
Posts: 14
|
Hi,
I discovered this language this week-end and tried to read the much of possible. Now I have an headache and a lot of conceptual questions.
I would like to know the best definition of these terms and their interactions:
node, server, application, process, modules, supervisor |
|
|
| Back to top |
|
| uwiger |
Posted: Mon Mar 23, 2009 9:46 pm |
|
|
|
User
Joined: 03 Jul 2006
Posts: 604
Location: Sweden
|
phicarre wrote: I would like to know the best definition of these terms and their interactions:
node, server, application, process, modules, supervisor
node: One instance of the Erlang virtual machine, when Distributed Erlang is enabled (usually by starting the VM with erl -name N or erl -sname N)
server: usually just an Erlang process that implements a request/response pattern.
application: A component, consisting of Erlang modules, and possibly also non-Erlang code, grouped together using an OTP "application resource file" (.app file) An application can be loaded, started and upgraded as a unit.
process: Think processes in Unix, only much more lightweight. A process is an execution context, with its own protected memory.
module: The smallest loadable unit of code. Used to group functions into a flat namespace (Module:Function(...))
supervisor: An Erlang process whose main task it is to "monitor" a set of worker processes and restart them if they crash.
These concepts are very well described in Joe Armstrong's book. Highly recommended reading. |
|
|
| Back to top |
|
| phicarre |
Posted: Mon Mar 23, 2009 10:32 pm |
|
|
|
User
Joined: 23 Mar 2009
Posts: 14
|
| Thank you. Still many reading ! |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|