[concurrency-interest] Blocking queue

Dawid Kurzyniec dawidk at mathcs.emory.edu
Wed May 17 22:15:49 EDT 2006


Grace Kwok wrote:
> Presumably, the takeType2BeforeType1Task() method
> waits for anyQueueNotEmpty.  But the one who signals
> it is the put(type2obj).  So, the
> takeType2BeforeType1Task() method would really only be
> the takeType2Task() method if I understand correctly.
>
>   
The put(type1) may signal _both_ "nonEmpty" conditions (they belong to 
the same lock).

Regards,
Dawid



More information about the Concurrency-interest mailing list