Re: low pass filter behaviour when dequeued
Thats great - Yes, that is the kind of thing I was thinking of.
Queues certainly are certainly for passing data around loops.
I think you have it but to re-iterate: the problem is deqeueing from the same queue in two locations. Each obtain queue creates a single data structure, the two dequeues were taking data from the same place. One loop was taking some and the other taking the rest. In the example one loop enqueues and one other dequeues. The third loop just looks at the queue size.