Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

Questions about pipeline

isnork
Beginner
108 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
108 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.
JamesR
Black Belt
108 Views
Agreed. The example is simplistic and somewhat limited, but the concept of concurrency here can (and should) be extended in a real router.
Reply