• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Best Practices for Managing Concurrency in Java Applications

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I'm developing a Java application that requires efficiently handling multiple concurrent tasks. While I'm familiar with basic threading concepts, I'm looking to deepen my understanding of best practices for managing concurrency in Java. Specifically, I'm interested in strategies to avoid common pitfalls like race conditions and deadlocks and how to utilise java.util.concurrent package. Could anyone recommend comprehensive resources or share insights on this topic?

Here are some resources I've found:
https://www.youtube.com/watch?v=WldMTtUWqTg
https://www.theengineeringprojects.com/2023/09/essential-tools-for-devops-engineers.html
https://www.baeldung.com/java-concurrency
https://docs.oracle.com/javase/tutorial/essential/concurrency/
 
Sheriff
Posts: 22862
132
Eclipse IDE Spring TypeScript Quarkus Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch!

I've had this book on my shelf for years, and it's still relevant: Java Concurrency in Practice. Its author, Brian Goetz, is one of the chief architects at Oracle.
 
Saloon Keeper
Posts: 28831
212
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Brian Goetz was at Sun Microsystems before it got bought by Oracle. He has extensive credentials.

Note, however, that his book on currency is dated 2006 and substantial improvements have been added to Java since then. So I'd use it as a basis for learning best practices in concurrency, then look to more modern sources.

For example:

https://www.baeldung.com/java-common-concurrency-pitfalls

https://www.baeldung.com/java-concurrency (assorted publications)

The Baeldung stuff is all no more than about 2 years old and their docs are first-rate.
 
The two armies met. But instead of battle, they decided to eat some pie and contemplate this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic