concurrency(?) in rpc:multicall()

HP Wei hp@REDACTED
Tue Jun 27 14:37:33 CEST 2006


According to the manual,
"
   It is semantically the same as iteratively making a series
   of RPCs on all the nodes,
   but the multicall is faster as all the requests
   are sent at the same time...
"

I do NOT understand the last part:
"
   all the requests are sent at the same time
"

I trace the source code for rpc:multicall().
It boils down to gen_server:send_nodes(),
whose function head reads:
   send_nodes([Node|Tail], ...)

Apparently, multicall sends out the requests to the
target processes 'one by one'  (not at the same time).


Is there a typo in the manual for rpc:multicall() ???

--HP




More information about the erlang-questions mailing list