Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Eclipse Jobs API with newFixedThreadPool()(Running parallel eclipse jobs with fixed thread pool)
Eclipse Jobs API with newFixedThreadPool() [message #1013049] Fri, 22 February 2013 12:08
Eclipse UserFriend
Hi Guys,

I want to achieve below functionality using eclipse jobs API.

int nrOfProcessors = Runtime.getRuntime().availableProcessors();
ExecutorService eservice = Executors.newFixedThreadPool(nrOfProcessors);
eservice.submit(new FilValidation());



I have 1000 files, and i want to run only 4 threads at a time using Eclipse Jobs API and wanted to show the progress of 4 threads as well.

As my per knowledge,for best performance we need to run the threads which is close to number of cores in the system.


Best Regards,
Kondal Kolipaka
Previous Topic:Debug ant script when called from RCP product
Next Topic:Is Juno SR2 GA being delayed?
Goto Forum:
  


Current Time: Tue Jun 17 03:51:13 EDT 2025

Powered by FUDForum. Page generated in 0.08290 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top