Thread Safe Collections ArrayList and Queue

The attached project provides a dll containing a wrapper around the non-thread safe ArrayList and Queue classes. The wrapper implements the most common functions of this collection elements.

The .NET framework provides very useful System.Collections namespace, which offers the programmer elements like ArrayList, Queue, HashTable and some more.The only thread-safe class of them is HashTable- all other objects may cause exceptions, if they are simultaneously accessed by multiple threads.

The wrapper just locks the collection during the access, so that the next intrested thread has to wait until the operation is over.

Up Next
    Ebook Download
    View all
    View all