Reader and Writer requests are maintained in two different wait sets, by two different objects. These objects do not know whether the wait sets need notification since they don't know preference rules. So, each supports a method that can be selected by main controlling object to perform the notifications. This base class simplifies mechanics.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.