[.] DejaVU Online: -- The OO Lectures
[.] - [up] [top] - [I] [II] [III] [IV] - [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] - [A] [R]

The Reactor Pattern


The Reactor Pattern

See D.C. Schmidt, Using Design Patterns to Develop Reusable Object-oriented Communication Software, CACM October '95, 38(10): 65-74


slide: reactor cap="The Reactor Pattern



slide: The Reactor Pattern - structure



slide: The Reactor Pattern - interaction


Consequences

  • modularity
  • configurability of event-driven software
  • decoupling application-independent mechanisms from application-specific processing policies
  • improves portability -- abstracts from OS
  • course grained concurrency control

Disadvantages

  • handlers are not pre-empted
  • flow of control is event-driven
  • applications can be hard to debug

Applications

  • (X) Windows, Interviews, hush
  • Orbacus Omnibroker

Related Patterns

  • Observer, Facade, Template Method

slide: The Reactor Pattern - interaction


[.] - [up] [top] - [I] [II] [III] [IV] - [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] - [A] [R]
Hush Online Technology
hush@cs.vu.nl
02/15/00