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 must be signed in to leave a comment
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.