|
-
Feb 27th, 2011, 08:28 PM
#3
Re: Multithreading a for loop?
I'm pretty sure you have to be targeting framework 4.0, which means VS2010, to have any of the Parallel stuff.
That will multithread a loop, but from the description, you want to make some specific number of threads available, so thread pooling certainly sounds like one option. However, you might find that it makes more sense to create your own threads and make something of your own pool. My concern would be that the thread pool might be a bit TOO efficient for effective testing. It might automatically adjust in ways that you wouldn't want.
My usual boring signature: Nothing
 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|