# Connecting an output to multiple input

**URL:** <https://www.ruby-forum.com/t/connecting-an-output-to-multiple-input/232491>\
**Category:** GNU Radio\
**Created:** [October 12, 2014, 6:03pm UTC](https://www.ruby-forum.com/t/connecting-an-output-to-multiple-input/232491 "2014-10-12T18:03:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [October 12, 2014, 6:03pm UTC](https://www.ruby-forum.com/t/connecting-an-output-to-multiple-input/232491/1 "2014-10-12T18:03:03Z")

</div>

Hello GNURadioers!

I have a block (blck #1) connected to multiple of blocks. Here I have  
two  
blocks’ (call blck #2 and blck #3) connected to blck #1 output.

I’m confused when I saw nitems\_read of blck #2 and #3 aren’t the same,  
say  
1000 items are read by blck #2 and 155000 items read by blck #3 after  
sometimes. I know the processing chain of blck #2 and blck #3 is so  
different which causes a low rate of reading items by blck #2 rather  
than  
blck #3 can read so faster.

My question is why? why is this happening? Both of blck #2 & 3 are  
reading  
from one output port?

Any idea?

Best,  
Mostafa

---

<div class="post-metadata">

**Author:** ![mostafa\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/5e9695/32.png) [@mostafa\_a](https://www.ruby-forum.com/u/mostafa_a)\
**Post date:** [October 12, 2014, 10:32pm UTC](https://www.ruby-forum.com/t/connecting-an-output-to-multiple-input/232491/2 "2014-10-12T22:32:53Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Hi Mostafa,

it’s like you understand: It’s the same output buffer, but each  
consumer (== block2 and 3) have their own buffer readers that keep  
track of how many samples they consumed.  
Block 1 can only overwrite parts of the buffer that _both_ readers  
have already consumed.

Greetings,  
Marcus

On 12.10.2014 18:01, Mostafa A. wrote:

> blck #2 rather than blck #3 can read so faster.  
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Discuss-gnuradio  
> mailing list [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1

iQEcBAEBAgAGBQJUOuUoAAoJEAFxB7BbsDrLCWAH/2wKvVA6k86G8+xzah5BWQtM  
MKGNH4A2KxIbf6PSR9tA9PMUsUUAkriXzlOrElJO8JfpWGnRIA1A4vGmU88Gbk+Y  
ixzWfPtuclgKG6XA3lQk04bEnFl2vemSWHpE2kqtp1yRFX2dE/pTGc/NS/wZj5D2  
/mJzotbkX3KNStUEHQrTyGCrOevIwJPd+CcduZJaNyUGG1DBxYf2TQZBU80Mr6G0  
FZBjD36FZYCEESuqBbUsO/RGv21keFHI+qHOlbKmwYxZDRZUWSFwl6pMVxtsWieV  
4YhSVG6ZC2ah7Vrwp/+b29srbs3KGlxewk+AfX4k8n93ULzYQ+QCFfQsryANh2U=  
=F4hU  
-----END PGP SIGNATURE-----
