On Thu, 10 Jan 2008 01:24:47 -0800 (PST), Sanny
<> wrote, quoted or indirectly quoted someone who
said :
>
>How can it be done, any idea.
A thread has a fairly high start up cost, so there is not much gained
to great a thread just to initialize an array. Also for threads to
work well they should not be poking at the same ram or they just trip
over each other.
So want to split your app up in ways that don't overlap, e.g.
computation and painting the GUI, or doing I/O and computing,
You might do it by splitting your data in 4 parts and turning a thread
loose on each part.
Design your app so you can vary the number of threads to optimal
performance determined by experiment.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com