Home > DeveloperSection > Interviews > How we can send and receive message in Erlang?

Posted on    June-25-2015 11:34 PM

 erlang Functional Programming  Concurrent Programming  erlang 
Ratings:
 1 Answer(s)
  392  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Points:4035
Posted on    June-25-2015 11:34 PM

For sending message Erlang uses the exclamation mark (!) as the operator for sending a message. The syntax used for sending a message is Pid ! Message.
For receiving message Erlang uses Pattern Matching, to deliver a message from the message queue receive statement is used.

Modified On Jun-25-2015 11:37:14 PM

Don't want to miss updates? Please click the below button!

Follow MindStick