[erlang-questions] Actor garbage collection
Thu Nov 4 14:52:41 CET 2010
On Thu, Nov 4, 2010 at 14:32, Tony Hannan <tonyhannan2@REDACTED> wrote:
> Does an orphaned waiting process get garbage collected? By orphaned I mean
> no one references it (no one has its pid) so it will never receive anymore
> messages. By waiting I mean it is waiting for a message inside a receive.
> For example,
> Wait = fun() -> receive _ -> 0 end end.
> Will that spawned process live and wait forever even though we did not
> capture its pid and thus can't send messages to it, or will it be garbage
> collected eventually?
More information about the erlang-questions