hi guys
I have some executor service code which i want to re-write using fork-join. I am looking for better scalability.
ExecutorService executor = Executors.newFixedThreadPool(3);
final HSSFWorkbook runnableWb = wb;
Runnable expTask = new Runnable(){
public void run(){
getExportDocumentObject(true, "Excel",buffer, mReq,runnableWb);
}
executor.submit(expTask);
shutdownAndAwaitTermination(executor);
How do i rewrite the above code snippet using fork join API?
thanks