2016-09-13 4 views

답변

5

프로세스 - 동시성 의 기본 단위 - 저렴한 산란하는 - 다른 프로세스 와 메모리를 공유하지 않는 - - 자신의 스택 & 힙을 가지고 통신은 비동기 메시지 전달을 통해 이루어집니다. - 예 :

얼랑 쉘 액세스

> self(). 
    <0.720.0> -- Process id 
    > self() ! {hello, world}, ok. 
     ok 
    > self() ! {hello, world}, ok. 
     ok 
    > flush().  // Prints what you had done in the session 
    Shell got {hello, world} 
    Shell got {hello, world} 
    ok 
관련 문제