this post was submitted on 01 Mar 2025
12 points (100.0% liked)

Java

1541 readers
1 users here now

For discussing Java, the JVM, languages that run on the JVM, and other related technologies.

founded 2 years ago
MODERATORS
12
3,200% CPU Utilization (josephmate.github.io)
submitted 5 days ago by maxint to c/java
top 1 comments
sorted by: hot top controversial new old
[–] Scoopta 2 points 5 days ago

Hmmm, this is a really interesting article. I always make it a habit that every time I have multiple threads accessing a data structure I use the Collections.synchronized methods to create the structure so as to avoid race conditions. This just gives me another data point as to why that's a good idea.