Ideal Thread Pool Size | How to decide Number of Threads in Thread Pool | Java Multithreading
How to decide Number of Threads in Thread Pool or What is the Ideal Thread pool size is one of the most tricky Java Interview question. If you get this correct in Java Interview, you prove your threading knowledge basics.
I have covered two factors here:
1. Number of Cores
2. Type of Application - CPU Intensive or IO Intensive
For my other Java Multithreading Interview videos, see below:
1. How to create Threads in Java
• How to Create Threads ...
2. Thread Life cycle
• Thread States in Java ...
3. Thread Priorities in Java
• Thread Priority in Jav...
If you liked this video and want to appreciate my work, you can buy me a coffee☕️
www.buymeacoffee.com/wadhara
You can also support by Sharing and Subscribing to this channel🚀.
Keep Supporting👋
Connect with me on LinkedIn -
/ ajaywadhara
#java #javainterview #multithreading
Пікірлер: 12
I really liked the content
Excellent tutorial...very well explained
it cleared all my doubt!! thankyou much!! :)
Nice tutorial Ajay it was clearly explained
Thanks you so much for this video.
Very well articulated Good one
thanks
👍
how to get blocking coefficient?
@AjayWadhara
4 жыл бұрын
Blocking Coefficient is 0 for CPU intensive applications, for IO intensive applications, you have to profile your application and calculate yourself. For Example, If your program is taking 2 seconds, out of that it is taking 1 second for DB call or REST call, then your thread is blocking for 50% of the time during IO operation. Hence your blocking coefficient is .5 You can use StopWatch in commons.lang or Guava library.
Amrish FTW
@AjayWadhara
4 жыл бұрын
Big fan 🤘🏻