5.9. Exercises
Exercise 5.1 | Try a loose coupling experiment with the PingPong example: start Ping before Pong. What happens? Now try starting Pong before Ping. What happens? |
Exercise 5.2 | In the PingPong implementation, add a field to the Ball entry to hold a timestamp. Modify the PingPong code such that, if the player is Ping, a report of the roundtrip time of the message is printed each time a Ball is received from Pong. |
Exercise 5.3 | How would our PingPong example behave differently if Pong were changed to throw a ball first and then catch a ball (as Pong does)? |
Exercise 5.4 | In our basic channel implementation of Section 5.4, we noted some drawbacks in how we check for the existence of a channel. Our solution to creating channels ignores another ... |
Get JavaSpaces™ Principles, Patterns, and Practice 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.