Thursday, June 09, 2016

.NET thread-safe collections

BlockingCollection Overview
"BlockingCollection is a thread-safe collection class that provides the following features:
An implementation of the Producer-Consumer pattern.
Concurrent adding and taking of items from multiple threads.
Optional maximum capacity.
Insertion and removal operations that block when collection is empty or full.
Insertion and removal "try" operations that do not block or that block up to a specified period of time.
Encapsulates any collection type that implements IProducerConsumerCollection
Cancellation with cancellation tokens.

Two kinds of enumeration with foreach (For Each in Visual Basic):

  • Read-only enumeration.
  • Enumeration that removes items as they are enumerated."
link from: .NET Rocks! vNext

Asus Zenbo $600 Home Robot

Asus Zenbo Attempts to Convince Us That We Need a $600 Home Robot - IEEE Spectrum

Your Smart Little Companion - Full version | Zenbo | ASUS - YouTube