Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Programming Threads > set_intersectio...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 4083 of 4146
Post > Topic >>

set_intersection

by mpho <tjabane@[EMAIL PROTECTED] > Oct 11, 2008 at 04:29 AM

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?
 




 6 Posts in Topic:
set_intersection
mpho <tjabane@[EMAIL P  2008-10-11 04:29:59 
Re: set_intersection
mpho <tjabane@[EMAIL P  2008-10-11 06:20:21 
Re: set_intersection
Szabolcs Ferenczi <sza  2008-10-11 08:19:37 
Re: set_intersection
"Chris M. Thomasson&  2008-10-12 11:08:16 
Re: set_intersection
mpho <tjabane@[EMAIL P  2008-10-13 23:43:00 
Re: set_intersection
mpho <tjabane@[EMAIL P  2008-10-14 00:13:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 8:05:23 CST 2008.