Click here to Skip to main content
Click here to Skip to main content
Alternative Tip

Tagged as

Go to top

Simple Blocking Queue for Thread Communication and Inter-thread Invocation

, 24 Jan 2011
Rate this:
Please Sign up or sign in to vote.
In .NET 4.0, you can use:New Concurrent.BlockingCollection(New Queue)This even has an option on the constructor to let you specify a maximum queue depth. If it reaches this depth, a call to Add will block until the consumer thread takes something out of the queue.
In .NET 4.0, you can use:
 
New Concurrent.BlockingCollection(New Queue)
This even has an option on the constructor to let you specify a maximum queue depth. If it reaches this depth, a call to Add will block until the consumer thread takes something out of the queue.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

dwilliss
Web Developer
United States United States
No Biography provided

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 24 Jan 2011
Article Copyright 2011 by dwilliss
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid