User:DhirendraKumarSuman

Leaders/Followers Pattern

The Leaders/followers design pattern is a concurrency pattern in which no communication between the threads are necessary, no synchronization, nor shared memory (no locks, mutexes) are needed among threads. Along with it more ConcreteEventHandlers can be added without affecting any other EventHandler. It also minimizes the latency because of the multiple threads in action.

This pattern consists of four elements:

Thread Pool

HandleSet

Handle

ConcreteEventHandler (implements the EventHandler interface).