|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
Doable<I,O> | Interface for worker in pattern framework. |
DynamicWorker<S,T> | Classes for a dynamicWorker. |
MasterWorker<S,T> | This is a simple master/worker pattern. |
WorkQueue<S> | Classes for queuing work items.. |
Class Summary | |
---|---|
MasterWorker.ResultKey | An abstract type used to hold keys for result values. |
MasterWorkerFactory | Classes for a MasterWorker Factory. |
Provides the classes and interfaces for a simple master/worker pattern.
The master thread creates an instance of the pattern, provides work items to be processed, and is signaled upon completion. The master thread may wait for completion (synchronous) or may poll for completion (asynchronous).
A master/worker pattern may be static or dynamic. In a static master/worker, execution proceeds in two distinct phases - first all of the work items are submitted and then the workers execute by consuming work items. Work items may not be submitted once execution has begun. In a dynamic master/worker, submission of work and the execution of workers proceeds concurrently. Furthermore, a worker task may opt to add new work items during its execution. Warning: This package is for internal use only. The API is not finalized yet.
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |