Choose Wisely

Programming concurrency on the JVM has come a long way; we’re no longer confined to one prescribed model. We have the freedom to choose from the models that make the most sense for each application we create.

We can choose from at least three options:

  • The beaten path of synchronize-and-suffer model

  • The software transaction memory

  • The actor-based concurrency

No one option provides a perfect solution for all applications; each one of them has its strengths and weaknesses. We have to judiciously pick the solution with the most pros and the least cons for the application on hand.

The Modern JDK Concurrency API

The modern JDK concurrency API is baked right in, so everyone using JDK 1.5 or later will be able to use it. This API makes ...

Get Programming Concurrency on the JVM now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.