Erlang的常驻模块与功能模块

本文介绍了Erlang中常驻模块与功能模块的概念及其区别。常驻模块包含进程的尾递归循环函数,而功能模块则不包含这些函数。对于使用OTP行为的进程,行为模块被认为是常驻模块,而回调模块被视为功能模块。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Erlang的常驻模块与功能模块

Residence module

The module where a process has its tail-recursive loop function(s).
If the tail-recursive loop functions are implemented in several modules,
all those modules are residence modules for the process.

Functional module

A module which is not a residence module for any process.

Note that for a process implemented using an OTP behaviour,
the behaviour module is the residence module for that process.
The callback module is a functional module.

常驻模块是指loop()函数所在模块,其他模块为功能模块。
对于OTP行为,行为模块是常驻模块,回调模块是功能模块。

行为模块已由OTP实现。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值