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) workThreadPoolI got this question in a job interview.I would like to ask this question from Java 8 Features in section Autoboxing & Miscellaneous of Java

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