|
|
|
|
|
by bsder
481 days ago
|
|
Designing your own concurrency structures instead of using ones designed by smart people who thought about the problem more collective hours than your entire lifetime is unwarranted hubris. The fact that ConcurrentTreeMap doesn't exist in java.util.concurrent should be ringing loud warning bells. |
|
If you're doing that anyway, it tends to be easier and more reliable to forget about thread safety at the bottom, and instead design your program so that thread safety happens in larger blocks, and you have big chunks of code that are effectively single-threaded and don't have to worry about it.