in reply to Taking advantage of multi-processor architecture
Taking advantage of conncurrency ranges from highly trvial up to Halting-Problem difficult. It all depends on what your goals are.
You'll need to take a look at what your code does to the data. Lets say you've got a big loop that processes all the data. Does that loop's next iteration depend on the last one completeing? If not, you can split the data in half, then fork() the processes, giving each process half the data. Then get the data back together.
If this loop does depend on the last iteration completeing, your task may be difficult or impossible.
"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Taking advantage of multi-processor architecture
by Fletch (Bishop) on Feb 11, 2005 at 14:16 UTC |