This is a creation in
Article, where the information may have evolved or changed.
original articles, reproduced please specify the Source: Server non-amateur research http://blog.csdn.net/erlib author Sunface
It is estimated that many students will find this confusing, go's name has been thunderclap piercing, but Erlang? This stuff is God horse? Is it a programming language? I've never heard of it before.
Here, let me first introduce the more famous
Erlang Multi-process and multithreading:In Erlang development, the smallest execution unit we face is the process, and of course this process is not a process at the system level, nor is it a thread. It is a process that is based on the Erlang runtime system. So how does Erlang's multi-process become multi-threaded at the system level and then processed by multi-
-Cause
In the last group of services recently, the CPU usage of some node servers is very low, with only 1/4 of other servers. Eliminate service imbalance and suspected it was a system top statistics error. We found it through Erlang: Statistics (scheduler_wall_time) from the Utilization Survey of Erlang scheduler) check that the actual CPU usage of the machine scheduler with low server CPU is close to 100%
official website (http://developer.baidu.com/wiki/index.php?title=docs/cplat/push) of the steps, First register a Baidu developer account, and then create their own application, according to the example Baidu Cloud server will produce a client's demo, can run on the Android phone. Then push the experiment on the page. Of course, you can download Baidu cloud push server, and then run using server Push, the official website has PHP, Java, Python, Node.
Goal(1) Understand the effect of Erlang concurrent process scheduling on CPU core load in multi-core CPU environment;(2) The memory increment mechanism of erlang virtual machine;(3) The operation of Erlang process;(4) Monitoring CPU usage under LinuxExperimental environmentLenovo Minicomputer: Operating system: RedHat Enterprise linuxserver release6.4 (Santiago)K
This article is mainly about go, from the perspective of comparative analysis of language. The reason why I chose to compare with Python and Erlang is that it is a high-level language, they have a large similarity in language characteristics, but the main reason is that I am more familiar with them.Many of the language features of Go are drawn from its three ancestors: C,pascal and CSP. Go's grammar, data type, control flow, etc. inherit from C,go's p
This is a creation in
Article, where the information may have evolved or changed.
When it comes to concurrent, Erlang and the go language are common, and the main feature of both languages is that Concurrent,erlang has a history of more than more than 20 years and is a language invented to simplify the development of telecom concurrency and high reliability applications. Go is the design of Google from 2007
Reprinted: http://chaoslawful.iteye.com/blog/310346#bc2251686
Evaluation purpose
The purpose of this test is to investigate the specific performance differences between the Erlang file I/O and the C standard I/O.
Prerequisites
Erlang has two types of operations: normal file I/O and bare file I/O. The file handle of normal file I/O is a process ID, therefore, you can access the handle from any location of th
structure is basically the same as described in 1.2:----------------------------------------------------------------------------------
1doc/2deps/3ebin/4src/5test/6LICENSE.txt7README.md8rebar.config
----------------------------------------------------------------------------------What's new in this one isDeps/Directory, which is fairly useful to have, but that will be generated automatically by rebar 2 if necessary.That's because there is no canonical package management in
blocking operations in each "Thread"; otherwise, the entire mechanism will become invalid.
Of course there are some perfect solutions. Erlang can be regarded as relatively perfect. Erlang implements lightweight threads and schedulers on virtual machines and becomes the basis of language. In Erlang, users do not control threads, but create a large number of light
Http://wenku.baidu.com/link?url=AUQR8Hn-e-fEB_lqjXsd8XfapWj1qAK7J05JoBXFib_ Llsk5qsotia8hixnv1xkezi-khfsh18qb9ned5pkipb8h6odfvr6kg75musyaammErlang Learning NotesI. The focus of Erlang language features1. Catch is a tuple that returns the value of an expression or an error messageTry...catch is able to capture different types of errors and have process control2, the message will never fail, if you try to send a message to a non-existent process, will o
Many people will notice this problem, Erlang provides 2 time functions, Erlang:now () and Os:timestamp (). In the same way, the current time is returned. The time is from January 1, 1970 Zero, to the current elapsed time, the result is {megasecs, Secs, microsecs}. What is the difference between these two functions? Os:timestamp () Gets the time of the operating system without making any corrections, while Erlang:now () ensures that a unique time is ge
Reprinted: http://www.iteye.com/topic/910030
Erlang connects to the MySQL database
1. Driver download and Installation
1. Download Erlang-mysql-driver
As follows:
SVN checkout http://erlang-mysql-driver.googlecode.com/svn/trunk/ MySQL
(If you have not
Target
(1) understand the impact of erlang concurrent process scheduling on the load of each cpu core in a multi-core cpu environment;
(2) memory increase mechanism of Erlang virtual machine;
(3) scheduling of Erlang processes;
(4) monitor cpu usage in LinuxLab Environment
Lenovo minicomputer: Operating System: RedHat Enterprise LinuxServer release6.4 (Santiago)
This is a creation in
Article, where the information may have evolved or changed.
original articles, reproduced please specify the Source: Server non-amateur research http://blog.csdn.net/erlib author Sunface
Why do I have to choose Erlang?
First, Erlang is particularly suitable for Small and medium-sized team entrepreneurship:
Erlang has an exceptionally matu
The resume interface will be designed for system construction, so that he can be connected to the resume System of applications in different languages. This is called the interface technology of Erlang.
Three methods of interface technology:
1. allow external operating systems to run outside the Erlang virtual machine. This is a safe approach. The code in the real-time external language is also problematic
Unbe. cnerlang_php_socket_test_01 some time ago, I talked about memcached and APC in the group and talked about devshm gradually. I said that he used devshm for caching. This discussion triggered my tests on the read/write performance of memcached, APC, and devshm data. During the test, I thought of Erlang's built-in ets and the legendary
Http://unbe.cn/erlang_php_socket_test_01/ some time ago, in the group and brother chat memcached and APC, gradually talked about/dev/shm, said he used/dev/shm
When analyzing Erlang:send's Bif, a Bif_trap series of macros was found. Refer to some of Erlang's own descriptions, which are designed to implement a mechanism called trap. The trap mechanism introduces Erlang's code directly into ERTs, allowing the C function to "use" these Erlang functions directly.Let's first think about why Erlang implements the trap mechanism. Let me start with the more recent fire go
As projects become more dependent on Erlang, the problems they encounter increase. The system encountered high memory consumption problem in the previous time line, and recorded the analysis process of troubleshooting. The online system uses the Erlang R16B02 version.Problem descriptionThere are several online systems that run for some time and the memory soars. The system model is simple and has a network
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.