9.11. Improving the Mandelbrot RPC Server

As discussed in Section 9.3, the key to an efficient RPC client/server arrangement is to make sure that the overhead inherent in an RPC call is appropriately balanced by the amount of time saved by making the call. The arrangement for the Mandelbrot program shown in Section 9.10 is not really appropriate because one RPC call is made for each pixel in the image. The overhead penalty incurred by these thousands of RPC calls has a devastating effect on the program's overall performance.

To solve this problem and make RPCs useful in the Mandelbrot program, you must somehow create batches of pixels that are calculated in a single function call to the RPC server. The batches need to be broken up so that the ...

Get Win32 System Services: The Heart of Windows® 98 and Windows® 2000 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.