Manager/Worker Paradigm
The Manager/Worker Paradigm consists of one manager process and two or more worker processes
The manager is responsible for routing messages/tasks to the workers and determining when all the work is finished
The manager and worker processes can exist in three states:
- Initial State
- Working State
- Finalize State
In order to utilize the Manager/Worker Paradigm, the developer must write the three functions for the states which are registered with the Manager/Worker paradigm
The Manager/Worker paradigm calls the appropriate function based on its state