[This is preliminary documentation and is subject to change.]
Represents a group of workers and allows registration of callbacks
Namespace: Microsoft.Research.Naiad
Assembly: Microsoft.Research.Naiad (in Microsoft.Research.Naiad.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax
C#
public interface WorkerGroup
The WorkerGroup type exposes the following members.
Properties
Name | Description | |
---|---|---|
Count |
Number of workers
|
Events
Name | Description | |
---|---|---|
Sleeping |
This event is raised by a worker when it becomes idle, because it has no work to execute.
| |
Starting |
This event is raised by each worker when it initially starts.
| |
Terminating |
This event is raised by a worker when it has finished all work, and the computation has terminated.
| |
Waking |
This event is raised by each worker when it wakes from sleeping.
| |
WorkItemEnding |
This event is raised by a worker immediately after executing a work item.
| |
WorkItemEnqueued |
This event is raised by a worker immediately after enqueueing a work item.
| |
WorkItemStarting |
This event is raised by a worker immediately before executing a work item.
|
See Also