6

Concurrency Design Patterns

Previous chapters on creational, structural, and behavioral patterns proposed a design that concerns the base code. Their main focus was on the maintainable base code that operates in the main single application thread. In other words, the generated byte code is executed in a defined sequence to achieve the desired results.

Nowadays, business requirements have shifted the application expectations described by the GoF’s book over the years more and more within a concurrent and parallel world. This has been succeeded by a massive improvement in hardware.

The Java platform provides concurrency functionality under the hood from the very beginning. The Flight Recorder tool of Mission Control set helps collect data points ...

Get Practical Design Patterns for Java Developers 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.