Applications of concurrent queues and stacks in .NET 4

Posted by Jon Harrop on Stack Overflow See other posts from Stack Overflow or by Jon Harrop
Published on 2010-06-15T23:24:38Z Indexed on 2010/06/15 23:32 UTC
Read the original article Hit count: 170

Filed under:
|
|
|

.NET 4 includes new concurrent data structures. The Bag and Dictionary collections have obvious applications but I cannot see any use for the Queue and Stack data structures. What are people using these for?

Also, I've noticed that the design based upon linked lists incurs a lot of allocation and that destroys scalability. This is surprising given that the sole purpose of these collections is multicore programming. Is this an inherent limitation or are they just badly implemented?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET