Readers And Writers

This pattern involves accessors (Readers) and state-changing operations (Writers).

In this implementation Readers are blocked if there are waiting Writers. Waiting Writers are chosen arbitrarily and there are no downgrade mechanisms.

See also

ReentrantReadWriteLock

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.