Skip to main content

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 KolipakaFriend
Messages: 8
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: Mon Oct 26 08:05:09 GMT 2020

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

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

Back to the top