So, if you add a read() method to MyMap for those threads, would that be synchronized as well?

That is what we would not want due performance impact.

How can you achieve lock-free reads with the synchronized MyMap approach?

Reply via email to