Hi
I'm new to TBB so this question might be trivial. Is there a possibility to parallize while loop that is working all the time?
Eg.
while(!finished)
{
if(item_exists)
{
//do something
}
//else do nothing
}
And we dont know how many items we will process, and what is next item or even if there is another item. In pthreads or OpenMP it's very easy to parallelize but here is a bit strange for me... Or maybe i don't understand it well enough.
Please help me :)

