More Parallel Patterns
After half of a chapter dedicated to parallel patterns, it is now time for another chapter about parallel patterns! In the previous chapter, we focused solely on parallel programming support included in Delphi, which we enhanced a little so that it was easier to use.
In this chapter, I’ll look at parallel programming patterns that can be found in an open source parallel programming framework, OmniThreadLibrary. Although the library covers everything from thread-based to task-based multithreading, I will focus almost entirely on patterns and leave other parts for the interested among you to discover.
In this chapter, we will try to answer the following questions:
- How do we install and use OmniThreadLibrary?
- What are blocking collections and how can they be used?
- How does the OmniThreadLibrary implementation of Async, Join, and Future compare to the Delphi implementation?
- How can the Parallel Task pattern be used to process data...