Thread Safety and Concurrent Queue Collection

Adapted from Simon Robinson's PluralSight course on C# Concurrent Collections. This demo uses a Queue collection and a ConCurrentQueue collection.

Place Orders sequentially. No threads.

Place Orders with Tasks using the Queue that is not thread safe.

Place Orders with Tasks using a lock.

Place Orders with Tasks using the Queue that is thread safe.

Orders



© Michael Damron 2017