C++ multithreading tutorial [closed] C++ multithreading tutorial [closed] multithreading multithreading

C++ multithreading tutorial [closed]


Instead of using Win32 threads directly, I'd consider using a thread wrapper such as Boost threads. These are cross platform so porting your application later will be easier.


You may take a look at the following OpenMP tutorials. This doesn't concern all concepts of multithreading in VC++, but OpenMP only, which VC++ supports. OpenMP is easy to use in some simple cases of multithreading, for instance independent iterations in loop, independent blocks of code which can be executed concurrently. Although OpenMP is not so flexible in comparison with other approaches but it is very easy to use.

To enable OpenMP you need to switch it on in the project properties, "C/C++/Language/OpenMP Support".


Win32 Multithreaded Programming

Also try some of the free undergraduate podcasts on operating systems. You can find theoretical discussions on locking, multithreading, etc. (the one I know of is from Berkeley and is based on Java, but it is still relevant).