nitsujiの日記 RSSフィード




01:27 | erlangのprocess - nitsujiの日記 を含むブックマーク はてなブックマーク - erlangのprocess - nitsujiの日記 erlangのprocess - nitsujiの日記 のブックマークコメント

Erlang processes are neither operating system processes nor operating system threads, but lightweight processes somewhat similar to Java's original “green threads” (the Java Virtual Machine now uses native threads). Like operating system processes (and unlike green threads and operating system threads) they have no shared state between them. The estimated minimal overhead for each is 300 words (4 bytes per word on 32-bit platforms, 8 bytes per word on 64-bit platforms), so many of them can be created without degrading performance (a benchmark with 20 million processes was tried[3]).

Erlang (programming language) - Wikipedia

なんかわかるようでわかんないのでgreen threadsというのを見てみる。

The Erlang virtual machine has what might be called 'green processes' - they are like operating system processes (they do not share state like threads do) but are implemented within the Erlang Run Time System (erts). These are sometimes (erroneously) cited as 'green threads'.

Green threads - Wikipedia

OSじゃなくてVirtual Machineが管理するのがGreen threadsというやつらしい。で、erlangのprocessは言わばgreen processesってところで、OSプロセスみたいなんだけどErlang Run Time System (erts)で実装されていると。




LottaLotta2011/09/18 22:59Why do I bhoter calling up people when I can just read this!

utjzvhexvutjzvhexv2011/09/19 02:10ac8jRp <a href="">ustobbmhuyui</a>