/Java_Playground

You know, big time

Primary LanguageJava

2022-08-21

  • What is ForkJoinPool?
ForkJoinPool.commonPool().invokeAll(Arrays.asList(applePicker1, applePicker2, applePicker3));
  • What is deadlock?

  • Differences between RecursiveTask and RecursiveAction?

    • RecursiveTask, compute():T
    • RecursiveAction, compute():void
  • Differences between ForkJoinPool.invlove() and execute()?

    • invoke, completes the given task
    • execute, arranges asynchronous, don't wait for them to complete
  • completeExceptionally(), nothing Failed?

  • Differences between invokeAll(Callables):List<Future<T>> and invoke(task):T ?