Thread-safe blocking queue implementation on .NET

后端 未结 7 804
無奈伤痛
無奈伤痛 2020-12-15 07:28

I\'m looking for an implementation of thread-safe blocking queue for .NET. By \"thread-safe blocking queue\" I mean: - thread-safe access to a queue where Dequeue method cal

7条回答
  •  太阳男子
    2020-12-15 07:53

    Yes, .NET4 contains concurrent collections. BTW, very very nice manual about Parallel Extensions from pfx team - http://www.microsoft.com/downloads/details.aspx?FamilyID=86b3d32b-ad26-4bb8-a3ae-c1637026c3ee&displaylang=en.

    pfx is also available for .net 3.5 as part of Reactive Extensions.

提交回复
热议问题