Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 17:08
kondal kolipaka is currently offline kondal kolipaka
Messages: 5
Registered: July 2009
Junior Member
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: Sun Oct 26 07:01:30 GMT 2014

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

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