---
title: "How to get PID of the process in Erlang?"  
description: "How to get PID of the process in Erlang?"  
author: "Tarun Kumar"  
published: 2016-03-07  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/22995/how-to-get-pid-of-the-process-in-erlang  
category: "erlang"  
tags: ["concurrent programming", "erlang"]  
reading_time: 1 minute  

---

# How to get PID of the process in Erlang?

spawn() function is used to determine the process PID, it returns a new process with the PID of the process.\
Example of Process creation:\
spawn(Module_Name, Name, Args) -> pid()\
Above, new process starts executing in Module_Name:Name(Args) where Name is the function name and Args is the argument list and argument lists are the no of possible elements which can be empty.

## Answers

### Answer by Tarun Kumar

spawn() function is used to determine the process PID, it returns a new process with the PID of the process.\
Example of Process creation:\
spawn(Module_Name, Name, Args) -> pid()\
Above, new process starts executing in Module_Name:Name(Args) where Name is the function name and Args is the argument list and argument lists are the no of possible elements which can be empty.


---

Original Source: https://www.mindstick.com/interview/22995/how-to-get-pid-of-the-process-in-erlang

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
