What is a Fork Join pool? - Cracking the Java Coding Interview

preview_player
Показать описание
Cracking the #Java #Coding #Interview - Question 143: What is a Fork Join pool?
Рекомендации по теме
Комментарии
Автор

No mention of the work stealing feature? It’s basically what makes the F/J pool unique compared to any other thread pool.

doriandd
Автор

Can you please explain why I shouldn't use it when working on server side? Thanks in advance.

MouhammedSalah
Автор

FJP, is a common pool in jvm. Parallel Stream uses this common Pool for running tasks in Parallel.Under high load, If not used correctly like having some blocking tasks like i/o tasks , these can cause resource contention...and may cause your thread to be in waiting or blocked state if not used correctly. Your api's will start taking more time which will be hard to debug. parallel streams thus should be used with caution shouldnt be used anywhere

VivekVivek-kfmx
Автор

Thank you for your excellent work! Could you please halt the background code movement as it's causing distortion?

ahmedbishree
Автор

There is spello in the written video, which fork join thread, written as fog join pool, please check and change

muthusankaranarayananvalli