Concurrency in Functions and Messages

Chandrashekhar Mullaparthi <>
Fri Dec 20 14:20:54 CET 2002


Eduardo,

the called function is run in the context of the calling process. A module
is just a container for some code and it exports some functions. If you are
familiar with C, calling io:format is the same as calling printf.

cheers
Chandru

-----Original Message-----
From: Inswitch Solutions - Erlang Evaluation [mailto:]
Sent: 21 December 2002 09:12
To: 
Subject: Concurrency in Functions and Messages


 
When a process is in receive state (receive -> ....), I understand that
concurrency is managed by a queue in Erlang when other processes send
messages to it.
 
I don't know how Erlang manages functions calls concurrency when
more than one process is calling the same function.
For example io:format(.....) called by two processes at the same time.

Does anyone know something about this ?

Thanks,
Eduardo Figoli
INSwitch Solutions



NOTICE AND DISCLAIMER:
This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.




More information about the erlang-questions mailing list