Channels in Java

Channels in Java

class Channel extends Selectable{

// send operation !

public synchronized void out(Object v) {…}

// receive operation ?

public synchronized Object in() {…}

}

We implement channels using the Java monitor class:

Previous slide Next slide Back to the first slide View Graphic Version