[erlang-questions] questions about gen_server behaviour

Ming Zhao(Jimmy) <>
Fri May 25 14:45:30 CEST 2007


Could anyone explain these two functions below in details (better with
example)?
1.synchronous request ----call
Makes a synchronous call to the gen_server by sending a request and waiting
until a reply arrives or a timout occurs.
who sends the reply? what exactly is the reply?
2.asynchronous request ----cast
Sends an asynchronous request to the gen_server and returns ok immediately
who sends the ok?

these 2 functions seems to me the same ,
so confused by them ..

BR
Thanks
Jimmy

-- 
Ming   Zhao
Dobelnsgatan 2C  231
752 37 Uppsala, SWE

Email: 
Tel: +46 (0)736964077
MSN:

Skype: zhaoomingg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070525/9509c5dd/attachment.html>


More information about the erlang-questions mailing list