Optimizing stateless servers Consider a connectionless server for file Table of information about files clients are using We find hash(IP addr, port) Overhead of opening and closing file each Buffer for file x
Multiple Threads Master thread for connection requests Slave threads for handling communication with clients Thread of execution: an abstraction of independent computation Single process can contain one or more threads CSIE, NTUT, Taiwan
Introduction X Presents the sequence of steps a programmer takes to first create a conventional program and then divide the program into local and remote components w Uses an example application to show the output from rpcgen and additional code required to create the client and server components of a distributed program that uses rpc