hello,
Is the STL algorithm set_intersection thread safe? I am solving
systems of simultaneous equations where each system's solution is in
the intersection of solution sets for that system. I have 8 systems of
equations on an 8-core shared-memory machine. Each processor will
solve (system) equations assigned to it serially.
The prototype for set_intersection is:
template <class InputIterator1, class InputIterator2, class
OutputIterator>
OutputIterator set_intersection(InputIterator1 first1, InputIterator1
last1,
InputIterator2 first2,
InputIterator2 last2,
OutputIterator result);
If set_intersection is thread safe, how do I use it with
boost::thread?
boost::thread t_obj(boost::bind(set_intersection, ... )) ??
Thanks.
Mpho
P.S: Would Intel TBB make my life easier here?


|