I have been working with the example code from the ExecutorCompletionService and put together the following example code.The code in solve() works as expected and prints
Does the ExecutorService guarantee thread safety ? I\'ll be submitting jobs from diffe开发者_JS百科rent threads to the same ThreadPoolExecutor, do I have to synchronize access to the executor before
I\'m trying to figure out how to correctly use Java\'s Executors.I realize submitting tasks to an ExecutorService has its own overhead.However, I\'m surprised to see it is as high as it is.