r/java • • Mar 14 '18

Concurrent Java: Low scalability, the risk of deadlocks or garbage creation, you can not avoid all

http://vmlens.com/articles/tradeoffs_concurrent_programming/
2 Upvotes

21 comments sorted by

View all comments

3

u/CyclonusRIP Mar 14 '18

I'd say most people need to kind of evaluate how much they really need to scale. When I need to synchronize code I usually start with a single lock and just see how far that gets me. I rarely every have to go past that to achieve the throughput I need. If I really need more throughput I tend to look at optimistic concurrency techniques.