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

  • @swatigupta6946
    @swatigupta694619 күн бұрын

    I really liked the content

  • @aanviaanvi2926
    @aanviaanvi29264 жыл бұрын

    Excellent tutorial...very well explained

  • @AmarKumar-co7yc
    @AmarKumar-co7yc3 жыл бұрын

    it cleared all my doubt!! thankyou much!! :)

  • @karanbathla706
    @karanbathla7063 жыл бұрын

    Nice tutorial Ajay it was clearly explained

  • @saket_21
    @saket_21 Жыл бұрын

    Thanks you so much for this video.

  • @sattish99
    @sattish992 жыл бұрын

    Very well articulated Good one

  • @DefamsTV
    @DefamsTV2 жыл бұрын

    thanks

  • @dhruvkundra9652
    @dhruvkundra96523 жыл бұрын

    👍

  • @sahilbhasin2112
    @sahilbhasin21124 жыл бұрын

    how to get blocking coefficient?

  • @AjayWadhara

    @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.

  • @hpsvirk
    @hpsvirk4 жыл бұрын

    Amrish FTW

  • @AjayWadhara

    @AjayWadhara

    4 жыл бұрын

    Big fan 🤘🏻