System.Threading.Barrier Class

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

See Also: Barrier Members


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


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.


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