Performance Tip 24.3
A computer’s I/O components are typically much slower than its memory. Output buffers are used to increase the efficiency of an application by sending larger amounts of data fewer times, reducing the number of times an application accesses the computer’s I/O components.
Line 114 of method
processConnection (lines 111–132) calls method
sendData to send
"SERVER>>> Connection successful" as a
String to the client. The loop at lines 119–131 executes until the server receives the message
"CLIENT>>> TERMINATE". Line 123 uses
readObject to read a
String from the client. Line 124 ...