¡@

Home 

c# Programming Glossary: blockingcollection

Pipelines, multiplexing, and unbounded buffering

http://stackoverflow.com/questions/15021469/pipelines-multiplexing-and-unbounded-buffering

.Net libraries. The new design My new design uses the BlockingCollection class and is based somewhat on this Microsoft article . In particular.. tasks each of which takes work items from a shared input BlockingCollection and writes its completed items to its own BlockingCollection.. and writes its completed items to its own BlockingCollection output queue. Because each processing task has its own output..

Print html document from Windows Service in C# without print dialog

http://stackoverflow.com/questions/416314/print-html-document-from-windows-service-in-c-sharp-without-print-dialog

to be executed by our pool of STA threads. summary private BlockingCollection Task _tasks summary The STA threads used by the scheduler. summary.. Initialize the tasks collection _tasks new BlockingCollection Task Create the threads to be used by this scheduler _threads..

Multiple producers, single consumer

http://stackoverflow.com/questions/5105382/multiple-producers-single-consumer

question This kind of thing is very easy to do using the BlockingCollection T defined in System.Collections.Concurrent . Basically you create.. you create your queue so that all threads can access it BlockingCollection LogRecord LogQueue new BlockingCollection LogRecord Each producer.. can access it BlockingCollection LogRecord LogQueue new BlockingCollection LogRecord Each producer adds items to the queue while Shutdown..

Creating a blocking Queue<T> in .NET?

http://stackoverflow.com/questions/530211/creating-a-blocking-queuet-in-net

behavior in the BCL that I should be using internal class BlockingCollection T CollectionBase IEnumerable todo might be worth changing this.. return _MaxSize set _MaxSize value checkSize internal BlockingCollection int maxSize MaxSize maxSize internal void Add T item Trace.WriteLine.. internal void Add T item Trace.WriteLine string.Format BlockingCollection add waiting 0 Thread.CurrentThread.ManagedThreadId _FullEvent.WaitOne..

No ConcurrentList<T> in .Net 4.0?

http://stackoverflow.com/questions/6601611/no-concurrentlistt-in-net-4-0

ConcurrentQueue ConcurrentStack ConcurrentBag and BlockingCollection . One thing that seems to be mysteriously missing is a ConcurrentList..

C# Downloader: should I use Threads, BackgroundWorker or ThreadPool?

http://stackoverflow.com/questions/6913487/c-sharp-downloader-should-i-use-threads-backgroundworker-or-threadpool

a queue with a semaphore or if you're using .NET 4.0 a BlockingCollection . For example Information used in callbacks. class DownloadArgs.. int MaxClients 4 create a queue that allows the max items BlockingCollection WebClient ClientQueue new BlockingCollection WebClient MaxClients.. the max items BlockingCollection WebClient ClientQueue new BlockingCollection WebClient MaxClients queue of urls to be downloaded unbounded..

SpinWait vs Sleep waiting. Which one to use?

http://stackoverflow.com/questions/9719003/spinwait-vs-sleep-waiting-which-one-to-use

Update Becoming more specific Is there a way to Make BlockingCollection Pulse a sleeping thread when it reaches bounded capacity I rather..