Effective Java
Download
2,19 Mb.
Pdf ko'rish
bet
289/341
Sana
11.07.2022
Hajmi
2,19 Mb.
#776765
1
...
285
286
287
288
289
290
291
292
...
341
Bog'liq
Effective Java
Bu sahifa navigatsiya:
EnumSet.of(Style.BOLD, Style.ITALIC)
Item 81: Prefer concurrency utilities to wait and notify
Given the difficulty of using wait and notify correctly, you should use the higher-level concurrency utilities instead.
it is impossible to exclude concurrent activity from a concurrent collection; locking it will only slow the program.