For this homework assignment, create a class
MultiReaderLock that allows simultaneous read operations, but disallows simultaneous write and read/write operations.
You will use this class in project 3.
Download the files located on at:
Fill in the missing code. If you are uncertain what a particular method should do, refer to the JavaDoc comments. Use the jUnit tests provided to test functionality. You may add members and methods to the
MultiReaderLock.java file, but you may not modify the method signatures already present. This means you may not make a provided method
throw an exception if it was not already.
DO NOT MODIFY THE TEST CODE. You may NOT modify the function declarations in the template code. This includes adding the
throws keyword to throw exceptions.
Submit your work to SVN using Eclipse at
username is your USF Connect username.
If you are using Eclipse properly, then you should have the following files (at a minimum):
Note: You must both pass all of the provided unit tests and pass a cursory code review by the teacher assistant to receive full credit on this homework assignment.