01: /**
02: * An interface for a message passing scheme.
03: *
04: * Figure 4.13
05: *
06: * @author Gagne, Galvin, Silberschatz
07: * Operating System Concepts with Java - Sixth Edition
08: * Copyright John Wiley & Sons - 2003.
09: */
10:
11: public interface Channel
12: {
13: /**
14: * Send a message to the channel.
15: * It is possible that this method may or may not block.
16: */
17: public abstract void send(Object message);
18:
19: /**
20: * Receive a message from the channel
21: * It is possible that this method may or may not block.
22: */
23: public abstract Object receive();
24: }