When I set the grainsize to 100/200/500/1000, results are the same.
parallel_for(blocked_range<size_t>(0, to_scan.size(), 200), //i changed the parameter to 100/200/500/1000
SubStringFinder( to_scan, max, pos ));
the output ranges as follows, it seems that the grainsize is more than 1000 and the parameter doesn't take effect at all.
So what's wrong with it? Thank you for your help.
Tbb version is 3.0; Processor: Intel i5 2450M; OS: Win7