Can I implement Parallel processing in Java without using Threads?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Vipin_Mathews
Posted On:   Friday, June 3, 2005 05:51 AM


Hi All,


How can I implement Parallel processing in Java without using Threads???...



In my application, I need to hit the database inorder to retreive a huge set of data. Also it has a Swing UI which is waiting for some other user interaction. How can I make use of this UI waiting time for hitting the database and save my process time.


Thanks & regards,

SCORPS

Re: Can I implement Parallel processing in Java without using Threads?

Posted By:   Almagest_FUTT  
Posted On:   Friday, June 3, 2005 02:13 PM

How can I make use of this UI waiting time for hitting the database and save my process time.

What "UI waiting time" ?? If you have two threads, of which one has nothing to do (to compute), and the other one something, which of both do you think will get "waiting time"?

Re: Can I implement Parallel processing in Java without using Threads?

Posted By:   Simon_Ablett  
Posted On:   Friday, June 3, 2005 06:07 AM

You need to use Threads or have a second heavyweight process (i.e. application) running which queries the database and caches the results before passing the data to your application when it is ready. Threading would propbably be more efficient.

Regards
About | Sitemap | Contact