Solution 6a: Readers and Writers, Writers have priority

Unable to load applet

Solution 6b: Fair Readers and Writers

Unable to load applet