Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

Questions about pipeline

isnork
Beginner
224 Views
Hi,
I've got a question about pipeline usage.

In the example PacketProcessing in chapter 11, why is forwarding the only filter that runs in parallel? Cant' the others (aside the first and the last one) run in parallel as well?

Thanks for your time!
0 Kudos
2 Replies
ARCH_R_Intel
Employee
224 Views
From a quick look, it appears that the Network Address Translator and Gateway stages could be a parallel stages too. Indeed translator::spare_port is declared as a tbb::atomic, which suggests the author was planning to turn Network Address Translator into a parallel filter. I'll check with the original author. There may be a subtle semantic issue with respect to IP address processing that I'm missing.
0 Kudos
JamesR
Black Belt
224 Views
Agreed. The example is simplistic and somewhat limited, but the concept of concurrency here can (and should) be extended in a real router.
0 Kudos
Reply