gpt4 book ai didi

concurrency - 幕后的 Erlang 进程是什么?

转载 作者:行者123 更新时间:2023-12-04 04:42:44 24 4
gpt4 key购买 nike

我对 Erlang 的了解非常有限,但据我所知,它可以以非常低的成本产生“进程”。

所以我想知道,幕后的那些“过程”是什么?

它们是纤维吗?线程?续集?

最佳答案

另外,来自 Erlang 文档:

Erlang processes are light-weight (grow and shrink dynamically) with small memory footprint, fast to create and terminate and the scheduling overhead is low.



来源: http://www.erlang.org/doc/reference_manual/processes.html

你可能还想看看这个:

http://www.defmacro.org/ramblings/concurrency.html

在谈论 Erlang 进程时,它说:

Erlang processes are lightweight threads. They're very cheap to start up and destroy and are very fast to switch between because under the hood they're simply functions. A typical Erlang system running on a modern desktop computer can switch between many tens of thousands such processes. Processes are switched every couple of dozen function calls which makes switches less granular but saves a tremendous amount of time normally wasted on context switching.

关于concurrency - 幕后的 Erlang 进程是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2788019/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com