How to block BlockingQueue?

As I understand it, in the event that the BlockingCollection uses an idle wait that notifies you of new items / callbacks. So I don’t understand how this is blocking, but I think that I am probably mixing blocked threads and blocking access to shared objects?

+4
source share
1 answer

This is a great explanation:

https://blogs.msdn.microsoft.com/toub/2006/04/12/blocking-queues/

, , - DeQueue. EnQueue , DeQueue ( , DeQueue), -, .

, ( ) , .

+1

Source: https://habr.com/ru/post/1662572/


All Articles