System.Threading.Barrier Class

Enables multiple tasks to cooperatively work on an algorithm in parallel through multiple phases.

See Also: Barrier Members

Syntax

[System.Diagnostics.DebuggerDisplay("Participant Count={ParticipantCount},Participants Remaining={ParticipantsRemaining}")]
public class Barrier : IDisposable

Remarks

A group of tasks cooperate by moving through a series of phases, where each in the group signals it has arrived at the System.Threading.Barrier in a given phase and implicitly waits for all others to arrive. The same System.Threading.Barrier can be used for multiple phases.

Requirements

Namespace: System.Threading
Assembly: System (in System.dll)
Assembly Versions: 4.0.0.0