Click here to Skip to main content
11,718,289 members (84,043 online)
Click here to Skip to main content

Tagged as

Simple Blocking Queue for Thread Communication and Inter-thread Invocation

, 24 Jan 2011 CPOL 4.1K 5
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

You may also be interested in...

Comments and Discussions

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