The ReadWriteLock Trap

Preview

The natural next question after synchronized is: can we use a read-write lock so many threads read in parallel? For strict LRU, the answer is no. This is one of the most valuable concurrency insights in the entire LRU interview — say it clearly before the interviewer steers yo...

Sign in to read the full chapter.

Checking access…