StackOverflow Questions for Tag: condition-variable

templatetypedef
templatetypedef

Reputation: 373082

How can you implement a condition variable using semaphores?

Score: 7

Views: 13121

Answers: 2

Read More
Utkarsh Munjal
Utkarsh Munjal

Reputation: 11

Managing Worker Thread Wake-Up in C++: Separate vs. Shared Condition Variables?

Score: 1

Views: 55

Answers: 0

Read More
user29207775
user29207775

Reputation: 31

Synchronization using condition_variable

Score: 1

Views: 41

Answers: 1

Read More
user3191398
user3191398

Reputation: 123

Why does using separate lock_guard for cv wait and pop() cause a segmentation fault?

Score: 2

Views: 106

Answers: 3

Read More
sleepyhead
sleepyhead

Reputation: 13

Why is my Timer class not executing when started consecutively with no delay?

Score: 0

Views: 66

Answers: 0

Read More
Ronny Brendel
Ronny Brendel

Reputation: 4845

Differences between Conditional variables, Mutexes and Locks

Score: 69

Views: 49843

Answers: 3

Read More
user19800684
user19800684

Reputation: 51

(c++ thread and condition_variable) Could this program never end forever?

Score: 2

Views: 111

Answers: 1

Read More
牛牪犇
牛牪犇

Reputation: 11

Why is the condition_variable in the thread pool not woken up?

Score: 0

Views: 101

Answers: 0

Read More
Seektech
Seektech

Reputation: 3

C++ condition variable doesn't block the thread on wait_until() using the time_poin::max()?

Score: 0

Views: 91

Answers: 1

Read More
yongjay
yongjay

Reputation: 11

Why is the output of this code incorrect?

Score: 1

Views: 138

Answers: 1

Read More
Artyom Chirkov
Artyom Chirkov

Reputation: 363

std::condition_variable wait_for infinite

Score: 3

Views: 2974

Answers: 2

Read More
ELLIOTTCABLE
ELLIOTTCABLE

Reputation: 18108

Why do pthreads’ condition variable functions require a mutex?

Score: 213

Views: 94691

Answers: 10

Read More
Zebrafish
Zebrafish

Reputation: 14270

How to prevent worker threads from idling until next condition variable notify

Score: 0

Views: 78

Answers: 1

Read More
Ethouris
Ethouris

Reputation: 1901

What is the return value of `wait_until` in case of triggered or spurious wakeup, when timeout was reached?

Score: 1

Views: 39

Answers: 1

Read More
jpo38
jpo38

Reputation: 21544

How to correctly use condition_variable and time_wait/timed_join in threads?

Score: 1

Views: 98

Answers: 1

Read More
lustfully
lustfully

Reputation: 41

Question about condition_variable, why condition_variable is paired with mutex

Score: 1

Views: 131

Answers: 1

Read More
Mathai
Mathai

Reputation: 839

Producer-consumer problem with queue and semaphore

Score: 0

Views: 58

Answers: 0

Read More
Makise Kurisu
Makise Kurisu

Reputation: 1

Why does my producer-consumer program using pthread_cond_signal get stuck?

Score: 0

Views: 77

Answers: 0

Read More
Y.Z
Y.Z

Reputation: 678

How many objects of mutex, semorphore or condition variables could a process initiate up to?

Score: 0

Views: 22

Answers: 0

Read More
Bimo
Bimo

Reputation: 6647

c#: How is Monitor.Wait Implemented?

Score: 3

Views: 1868

Answers: 2

Read More
PreviousPage 1Next