And friends of the high concurrency, and once again involved in the Erlang,erlang from the family of Ericsson, has a very high stability of the virtual machine and Platform library, Facebook used it to implement the chat system, Amazon developed SimpleDB, The most amazing is the What ' sapp, the high concurrency of the processing mechanism is eye-catching, it is time to understand Erlang.
The world is parallel, Erlang programs reflect the way we think and communicate, as individuals communicate by sending messages, and if someone dies, others will notice them.
The module class in Erlang is equivalent to the class in OOPL, and the process is equivalent to an object or class instance in OOPL.
Concurrent programming can be used to improve performance, create scalable and fault-tolerant systems, and write clear and understandable procedures to control applications in the real world.
Concurrent programs are programs written in a concurrent programming language, and the concurrent programming language has a language structure for writing concurrent programs. Erlang's concurrent programs are composed of multiple sequential processes that communicate with each other, a process that is a lightweight virtual machine that can execute a single Erlang function and communicate with other processes only by sending and receiving messages. In other words, concurrency is provided by Erlang virtual machines, and the operating system has a much smaller concurrency control granularity.
In Erlang:
1 The process of creating and destroying is very fast
2 sending messages between processes is very fast
3 The process behaves the same way on all operating systems
4 can have a large number of processes
5 No shared memory between processes, is completely independent
6 The only way to communicate is by message delivery, and each process has a mailbox that is created synchronously with the process.
Dynamic code loading is one of the Erlang features, and function calls are always the latest in the latest module, even if the current code compiles the module while it is running in the module.