Chapter 18

Making a Component the Master

In This Chapter

  • Making runtime more efficient with divisible tasks
  • Putting the Master-Slave pattern to work

In this chapter, I tell you about the Master-Slave pattern, which is useful for dividing work among processing elements to improve performance or reliability. The responsibilities of the master and the slave are well-defined and not interchangeable; all the slaves are doing identical or comparable work. The slave's roles are firmly defined before execution and need to be coordinated — a requirement that differentiates this pattern from the general problem of dividing work and scheduling it, which the operating system normally solves.

Get Pattern-Oriented Software Architecture For Dummies 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.