- Erlang Tutorial
- Erlang - Home
- Erlang - Overview
- Erlang - Environment
- Erlang - Basic Syntax
- Erlang - Shell
- Erlang - Data Types
- Erlang - Variables
- Erlang - Operators
- Erlang - Loops
- Erlang - Decision Making
- Erlang - Functions
- Erlang - Modules
- Erlang - Recursion
- Erlang - Numbers
- Erlang - Strings
- Erlang - Lists
- Erlang - File I/O
- Erlang - Atoms
- Erlang - Maps
- Erlang - Tuples
- Erlang - Records
- Erlang - Exceptions
- Erlang - Macros
- Erlang - Header Files
- Erlang - Preprocessors
- Erlang - Pattern Matching
- Erlang - Guards
- Erlang - BIFS
- Erlang - Binaries
- Erlang - Funs
- Erlang - Processes
- Erlang - Emails
- Erlang - Databases
- Erlang - Ports
- Erlang - Distributed Programming
- Erlang - OTP
- Erlang - Concurrency
- Erlang - Performance
- Erlang - Drivers
- Erlang - Web Programming
- Erlang Useful Resources
- Erlang - Quick Guide
- Erlang - Useful Resources
- Erlang - Discussion
Erlang - unregister
This is used to unregister a process in the system.
Syntax
unregister(atom)
Parameters
atom − This is the registered name to give to the process.
Return Value
None
For example
-module(helloworld). -export([start/0, call/2]). call(Arg1, Arg2) -> io:fwrite("~p~n",[Arg1]). start() -> Pid = spawn(?MODULE, call, ["hello", "process"]), register(myprocess, Pid), io:fwrite("~p~n",[whereis(myprocess)]), unregister(myprocess), io:fwrite("~p~n",[whereis(myprocess)]).
Output
When we run the above program, we will get the following result.
<0.55.0> "hello" Undefined
erlang_processes.htm
Advertisements