problem about condition-variable-Collection of common programming errors


  • user462608

  • weidongxu
    c++ mutex condition-variable
    I would like to ask whether it is OK to use 1 condition variable associated with 2 mutex, for 2 kind of data update.Basically, I have thread1 and thread2. Thread1 could wait for 2 kinds of data update, so it got 2 mutex, one for each. (I know I could use one mutex for all these data, but this is not the point of this question, right?) And I certainly does not want it be waiting on data1 while data2 is already available, so i

  • R..
    c linux pthreads condition-variable futex
    I’m implementing pthread condition variables (based on Linux futexes) and I have an idea for avoiding the “stampede effect” on pthread_cond_broadcast with process-shared condition variables. For non-process-shared cond vars, futex requeue operations are traditionally (i.e. by NPTL) used to requeue waiters from the cond var’s futex to the mute

  • Tyler McHenry

Originally posted 2013-11-09 21:36:35.