1.

Which feature of java 8 enables us to create a work stealing thread pool using all available processors at its target?(a) workPool(b) newWorkStealingPool(c) threadPool(d) workThreadPool

Answer» The correct option is (b) newWorkStealingPool

For explanation: Executors newWorkStealingPool() method to create a work-stealing thread pool using all available processors as its target parallelism level.


Discussion

No Comment Found

Related InterviewSolutions