With the server running, start two clients in separate windows. Can you conduct the two client sessions in parallel? Describe and explain your observation. Does it agree with the sequence diagram in Figure 5.30?

This exercise deals with EchoServer3. Recall that EchoServer3 is connection-oriented and concurrent.
Compile Echo*3.java (“javac Echo*3.java”). Then:


Yes, two client sessions can be conducted in parallel. The server only accepts one connection at a time, but it spawns a thread to service the connection and immediately accept the next connection. Hence a second concurrent client only have to wait until the first client’s connection has been accepted before it gets its turn with the server – the wait is hardly perceptible. The events observed agree with the sequence diagram in Figure 5.30 .

Computer Science & Information Technology

You might also like to view...

____________ is automatically installed on your system when you install Visual Studio.

a. Oracle b. DB2 c. MySQL d. Microsoft SQL Server Express Edition

Computer Science & Information Technology

Which of the following modes causes new characters to be typed over existing ones?

A. Insert B. Overtype C. Replace D. Type Over

Computer Science & Information Technology

Custom formats can be customized by manually changing the Format property where you want the format applied

Indicate whether the statement is true or false

Computer Science & Information Technology

The term ____ describes products that are commercially available and can be purchased and integrated with little or no customization.

A. TCSEC B. MLS C. OTC D. COTS

Computer Science & Information Technology