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 about thread behavior and displays them visually, improving our awareness of application dynamics. In this chapter, we are going to examine some of the most common scenarios in the information technology industry:
- Decoupling...