←
^
→
Designing RMI Applications
Use Containers To Mediate Inter-thread Communication.
If one thread needs to feed data to another thread it is often useful to use a queue.
The publishing thread can always add to the end of the queue. The consumer thread takes from the head of the queue.
We replace a synchronous call with asynchronous calls.
Return values are no longer meaningful. We might need a callback mechanism (e.g., out-of-paper).
José M. Vidal
.
39 of 49