3.6. Exercises

Exercise 3.1 Extend the distributed array example to create a multidimensional array.
Exercise 3.2 Extend the distributed array example to support copying of one array element to another. Make sure it is done safely, such that no other process can alter the value of either element as the copying takes place.
Exercise 3.3 Extend the distributed array example by implementing a prepend method. The method should take an Object and should add the object to the beginning of the distributed array in the space.

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.