|Eclipse Jobs API with newFixedThreadPool() [message #1013049]
||Fri, 22 February 2013 17:08
| kondal kolipaka
Registered: July 2009
I want to achieve below functionality using eclipse jobs API.
int nrOfProcessors = Runtime.getRuntime().availableProcessors();
ExecutorService eservice = Executors.newFixedThreadPool(nrOfProcessors);
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.
Powered by FUDForum
. Page generated in 0.03706 seconds