1. A synchronization primitive in concurrent programming that allows threads or processes to wait until a particular condition is met before proceeding with execution
The producer thread signals the condition variable when new data is available.
A thread produtora sinaliza a variável de condição quando novos dados estão disponíveis.
2. A mechanism used to coordinate access to shared resources between multiple threads, typically used in conjunction with a mutex lock
Condition variables enable efficient waiting without busy-loop polling.
Variáveis de condição permitem espera eficiente sem polling em loop ocupado.