Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Threads and parallel processing

Status
Not open for further replies.

rsshetty

Programmer
Dec 16, 2003
236
US
Hi,

I have this application I am coding in C++. Here's a general idea:
Input-> No. of events
Requirement of event
No. of places to satisfy reqmt.

Event 1
Generate combinations of satisfying requirement from diff. sources.

Event 2
Generate combinations of satisfying requirement from diff. sources.
...
Event n

I have accomplished the above. That is not the problem. When I run my program it takes too much time to generate these combinations. I was hoping I could run the generation of combinations in parallel. I know that threads are used to do something of this sort. I would appreciate it if someone could point me in a direction accomplish these in parallel... a book, a site or an idea.. anything would be appreciated.

Thanks.


rsshetty.
It's always in the details.
 
Unless you've got multi-processors, conveting to threads would be slower because of the context switching.
 
I do have access to multi-processors.



rsshetty.
It's always in the details.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top