Multithreaded applications on C++

As a part of my diploma work, I had to find out how to develop multithreaded applications. The obvious option is developing apps based on Win32 threads (for Windows only, of course). The library is free, but not cross platform. There are also several cross platform libraries letting you develop multithreaded applications. The most wide spreaded ones are Intel TBB, OpenMP, Boost MPI.

Читать дальше »

Queue template extension on C++

I needed to use a queue of fixed size in my diplom work recently. If the number of elements in the queue exceeds the given limit when adding a new element in the beginning of the queue, the last element should be automaticly popped off the queue. There should also be a possibility to search for an element in the queue: just to see if there’s such an element in the queue or not.

Читать дальше »