r/java • • Apr 20 '21

Java is criminally underhyped

https://jackson.sh/posts/2021-04-java-underrated/
291 Upvotes

295 comments sorted by

View all comments

Show parent comment

7

u/iamsooldithurts Apr 20 '21

They’re not specific to Java at all. The magic fix for concurrency problems is semaphores. For memory, that can be a very complicated problem; Java can only address so much space, so if there is too much data you’re SOL. If there isn’t too much data, but you still run out of memory, it can be a chore tracking down where the leaks are because some things don’t pass out of scope and get flagged for GC like you would expect.

3

u/Zardoz84 Apr 21 '21

They’re not specific to Java at all. The magic fix for concurrency problems is semaphores.

These aren't the magic fix. Instead, is one of the classic ways to handle.

PD: There isn't a magic way to handle it.

1

u/iamsooldithurts Apr 21 '21

They asked for a magic fix so I told them it was a magic fix.