[local-name [, ...] =]callprocedure ( [ argument [, ...] ] )
[across{g2-to-g2-interface | gsi-interface} ]
Note: A called procedure runs at the same priority as that of the calling procedure, not at the priority declared in its Default-procedure-priority attribute.
Calling and Wait States
When one procedure calls another in the local G2, the calling procedure does not enter a wait state. The called procedure may or may not enter a wait state, depending on its code. For information about wait states see Allowing Other Processing.
However, in a
call ... across, G2 cannot predict the response time of the remote system, so it enters a wait state and allows other processing for the duration of the call. The wait state avoids needless suspension of the local G2 or timeout of the calling procedure.
Caution: When a procedure returns from a wait state, the environment in which it executes may have changed in ways that invalidate the procedure's assumptions. Be sure to revalidate the environment as needed before continuing execution of the procedure.
Asynchronous Invocation
To invoke a procedure asynchronously, use the start action, as described under start.