A homogeneous execution environment operates within a heterogeneous
client-server network. A client selects a server and transmits a
procedure call with parameters. In response, a server dynamically and
securely downloads code to a compute server; invokes a generic compute
method; executes the code on the compute server; and returns the results
to the calling client method, preserving the result on the compute server
if requested. This technique is efficient in that it does not require
multiple copies of code to be downloaded or compiled since server
byte-codes can be executed on each of the different systems, therefore
downloading or compiling multiple copies of code can be avoided. The code
can be compiled once and downloaded as needed to the various servers as
byte-codes and then executed.