Erlang - is_alive



This returns true if the local node is alive and can be part of a distributed system. Otherwise, it returns false.

Syntax

is_alive()

Parameters

  • None

Return Value

This returns true if the local node is alive and can be part of a distributed system. Otherwise, it returns false.

For example

-module(helloworld). 
-export([start/0]). 

start() ->
   io:fwrite("~p",[is_alive()]).

Output

When we run the above program, we will get the following result.

false
erlang_distributed_programming.htm
Advertisements