Chapter 13. RMI
Remote Method Invocation
In which we examine RMI and see what it provides in terms of a distributed object programming model. We look at how threading interacts with it and how it uses threads.
RMI is not a thread topic per se, but it does often play a significant role in threaded programs because of its use by threaded programs. The prototypical MT program is a client/server system where the server is threaded to provide greater throughput. In our previous examples, we implemented client/server programs using simple byte streams to communicate across raw sockets. This was good because it was simple and fast, but it was bad because encoding any level of complexity (integers, symbols, objects, etc.) into the byte stream required complicated, ...
Get Multithreaded Programming with JAVA™ Technology now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.