Patterns and Best Practices
Patterns are documented best practices from the best. They “… express a relation between a certain context, a problem, and a solution.” Christopher Alexander. Thinking about the challenges of concurrent programming from a more conceptional point of view provides many benefits. In contrast to the more conceptional patterns to concurrency, provides the chapter best practices pragmatic tips to overcome the concurrency challenges.
Synchronisation
A necessary prerequisite for a data races is shared mutable state. Synchronisation patterns boil down to two concerns: dealing with sharing and dealing with mutation.
Concurrent Architecture
The chapter to concurrent architecture presents three patterns. The two patterns Active Object and the Monitor Object synchronise and schedule method invocation. The third pattern Half-Sync/Half-Async has an architectural focus and decouples asynchronous and synchronous service processing in concurrent systems...