ReentrantReadWriteLock

  • 9
  • Locked
The ReadWriteMap class must correctly provide access to a Map object across multiple threads, but mistakes were made during implementation. Find them and fix them.
You can't complete this task, because you're not signed in.
Comments (1)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Justin Smith
Level 39 , Greenfield, USA, United States
5 May 2022, 11:14
ReadWriteLock is an interesting one. Instead of simply locking down an object for all types of access, the ReadWriteLock class provides a way where an object can be locked for writing but still open for reading.