Top "Condition-variable" questions

A synchronisation primitive used in multithreaded programming to wait for a condition to be true.

condition variable - why calling pthread_cond_signal() before calling pthread_cond_wait() is a logical error?

It's written in POSIX threads tutorial https://computing.llnl.gov/tutorials/pthreads/ that it is a logical error. my question …

c++ c pthreads condition-variable
What is the best way to wait on multiple condition variables in C++11?

First a little context: I'm in the process of learning about threading in C++11 and for this purpose, I'm trying …

c++ multithreading c++11 synchronization condition-variable
How to use a condition_variable to really wait_for no longer than a certain duration

As it turns out, condition_variable::wait_for should really be called condition_variable::wait_for_or_possibly_indefinitely_longer_…

c++ multithreading c++11 condition-variable
What is the difference between busy-wait and polling?

From the Wikipedia article on Polling Polling, or polled operation, in computer science, refers to actively sampling the status of …

multithreading polling condition-variable busy-waiting
Stopping C++ 11 std::threads waiting on a std::condition_variable

I am trying to understand the basic multithreading mechanisms in the new C++ 11 standard. The most basic example I can …

c++ multithreading c++11 interrupt condition-variable
Compilation error : 'this' cannot be implicitly captured in this context

I am trying to add a condition_variable to handle threads, but get a compilation error at this line: this-&…

c++ scope this condition-variable
C++11 Thread: Multiple threads waiting on a condition variable

I am currently working on a problem that simulates a extended Producer-Worker model. In this problem there are 3 workers and 3 …

c++ multithreading c++11 mutex condition-variable
What happens when calling the destructor of a thread object that has a condition variable waiting?

I am using a SynchronisedQueue to communicate between threads. I found that destroying the thread object when the attaching thread …

c++ multithreading c++11 condition-variable
threading.Condition vs threading.Event

I have yet to find a clear explanation of the differences between Condition and Event classes in the threading module. …

python multithreading concurrency condition-variable
Locking C++11 std::unique_lock causes deadlock exception

I'm trying to use a C++11 std::condition_variable, but when I try to lock the unique_lock associated with …

linux multithreading c++11 mutex condition-variable