Originally Posted by dmail
Remind me. Is a Monitor another name for a condition variable?
Yes, they are related with each other. But a monitor is kind of concept and has some rules. You can implement it by using mutexes and condition variables. I can code it myself, but I want to learn whether there is a well-known base class implementation. So if you want to a specific implementation, you just derive it from base class and do some modifications .
For example, at the beginning I was using pthread library in my program. Then I want to write my own thread class, but I see that there is already a well-implemented library, named boost thread library.