I'm referring to the following link:http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/locks/ReentrantLock.html
Could someone explain to me what the read lock do. Does it just allow read access for concurrent threads to read and not write? As for write lock, it prevents concurrent threads from reading and writing until it is unlocked?
I'm especially confused with the read lock. Why and when should i implement a read lock when concurrency could happen.