System.Collections.Concurrent Namespace - .NET 4.0
Kuling, wt., 2009-07-07 20:05
Bardzo ciekawe klasy. Zwłaszcza iteratory. Iterator dający możliwość iteracji w sposób wątkoodporny brzmi ciekawie.
http://msdn.microsoft.com/en-us/library/system.collections.concurrent%28VS.100%29.aspx
I blog jednego z ludzi zajmujących się jak podejrzewam implementacją tych iteratorów.
http://blogs.msdn.com/pfxteam/archive/2008/08/12/8852005.aspx
Enumerating Concurrent Collections
http://www.infoq.com/news/2008/08/Parallel-Enumerators
Zwłaszcza to wylistowanie jest fajne:
- Deleted items will always be seen
- Deleted items will never be seen
- Added items will always be seen if added at the end of the collection
- Added items will always be seen if added wherever they are added
- Added items will always never be seen
- Moved items will never be seen twice
- Moved items will be seen twice, if moved to the end of the collection
- Moved items will always be seen, even if moved to the beginning of the collection
- No more than N items will be seen, where N is the original length of the collection
- Kuling's blog
- 149 odsłon
Kategorie:

Dodaj nową odpowiedź