Chapter 7 |
||||
Performance
RMI provides a simple interface for writing network applications. Calling a remote method is almost the same as calling a local method. But an application that uses remote objects is very different from an application that is local. Some of the main differences are:
Increased latency A remote method call will never be as fast as a local method call because of marshalling and unmarshalling of parameters. This chapter shows an example that calculates the time taken by a local method call and a remote method call. The source code needed for this example is stored in the examples\Performance directory. The "Performance" directory contains the following files:
|
||||
|
||||
Copyright © 2001 www.universalteacher.com |
||||