>>>>> "ZHAO" == ZHAO Wei <zhaoway@public1.ptt.js.cn> writes:
ZHAO> That, the lock-get function always returns #t no matter what been set
ZHAO> in another thread using lock-set.
A race seems the most likely explanation.
ZHAO> Another question is that, I can't seem to be able to understand the
ZHAO> necessity of the placeholders functions given the availability of the
ZHAO> locks functions. Can you please tell me the rationality behind it?
ZHAO> Thanks again!
Placeholders are a common abstraction in concurrent applications.
Moreover, they hold far less chance of making common
concurrency-related mistakes than locks.
--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
|