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 8d?

This exercise uses EchoServer1 and EchoClient1, which uses connectionless datagram sockets for the Echo service.

Compile Echo*1.java (“javac Echo*1.java”). Then:


Yes, the two sessions can be conducted in parallel and interleaved. This is because the interprocess communication is connectionless, so that the server can receive messages from any of the client at any time when it is not already occupied. This observation agrees with the diagram in Figure 8d.

Computer Science & Information Technology

You might also like to view...

Which of the following statements about functional-style programming is false?

a. With functional-style programming capabilities you can write code that is more concise, clearer and easier to debug—that is, find and correct errors. b. The min and max functions are examples of a functional-style programming concept called reduction. They reduce a collection of values to a single value. c. Other reductions you’ll see include the sum, average, variance and standard deviation of a collection of values. d. All reductions are built into Python—you cannot define custom reductions.

Computer Science & Information Technology

To save a single-file web page that integrates all worksheets and graphics from one workbook, you need to save the file as ____.

A. XLS B. view C. MHTML D. HTML

Computer Science & Information Technology

Using a work breakdown structure (WBS) allows one to manage a project as one large task.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The AND operator is written as two ____.

A. plus signs B. equal signs C. ampersands D. asterisks

Computer Science & Information Technology