What is the advantage of new Lock interface over synchronized block in Java?
The major advantage of
lock interfaces on multi-threaded and concurrent programming is they provide
two separate lock for reading and writing which enables you to write high
performance data structure like ConcurrentHashMap and conditional
blocking.
No comments:
Post a Comment