Eclipse jobs API + newFixedThreadPool

时间:2013-02-22 17:10:39

标签: eclipse multithreading plugins jobs

我想使用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

0 个答案:

没有答案