How to do thread management in C++?

Posted by Dipan Mehta on Programmers See other posts from Programmers or by Dipan Mehta
Published on 2011-11-15T14:15:00Z Indexed on 2011/11/15 18:07 UTC
Read the original article Hit count: 260

We use pthread for thread management in C based systems. pthread is in general compilable by C++ compiler (like g++). However, what are the better ways of abstractions for threads in C++?

Also, for making any system to be working in a multi-threaded system, it is also important to make thread safe. What are the standard libraries that requires alternative (installs) to be thread safe or are they unsafe for multi-threaded environments?

Is smart pointers, templates require special measures to make it safe?

What are the best practices for the thread managements in C++?

© Programmers or respective owner

Related posts about best-practices

Related posts about c++