I've discovered the intel TBB.
For my application I have to do a processing pipeline composed of filters...
So looks like a lot like pipeline feature of TBB library.
On one end of the pipeline, I've got a I/O blocking feeder that must wait from I/O.
On the other end (at the end), I've also got an I/O blocking processing wich sends result of the pipeline throught the network.
I was first thinking of a producer/consumer architecture, one thread for input I/O, a queue, n thread for computing, n queue, on thread for output I/O.
So the idea is to not be too much limited by I/O performance.(tipycally there will be a minimu if 3 thread and a max of ~5).
With TBB, this is the same concept but if i well understood, only one buffer is managed throught the pipeline. So it will not be efficient in my case no?(In fact i will on ly use filter as serial filter...)
Perhaps is there a better way to use TBB library for my case? (A mix of pthread + intel concurent queue??)
Thx for any advice!