Can someone explain me why java.util.concurrent.ArrayBlockingQueue
use locks and conditions instead of synchronized
and wait/notify
?
Asked
Active
Viewed 47 times
0

DPM
- 1,540
- 2
- 18
- 40
-
This question is offtopic on this forum, but it is perhaps because the locks being new constructs have some advantages over the older ones. – Miserable Variable Jan 20 '16 at 18:32
-
Why this is offtopic? Thanks for your attention. – DPM Jan 20 '16 at 18:36
-
1I also do not think this is offtopic but definitely duplicate as Andreas mentioned. @DPM Synchronization vs Lock is a better place to read the anser – Acewin Jan 20 '16 at 18:47