Java ForkJoinPool

Поділитися
Вставка
  • Опубліковано 9 лют 2025

КОМЕНТАРІ • 31

  • @itsahandle
    @itsahandle 4 місяці тому +8

    Jakob you have destroyed the fear of multithreading in my mind, I hope this video and the channel gets the popularity it deserves ❤

    • @JakobJenkov
      @JakobJenkov  4 місяці тому

      Thank you very much !! :-)

  • @qurdedu4032
    @qurdedu4032 9 місяців тому +13

    Jakob, you are purely a Legend. thanks a lot for the great explanations.

    • @JakobJenkov
      @JakobJenkov  9 місяців тому +1

      You are welcome! ... and thank you for your kind words! :-)

  • @zeinabrahmani-tn8rq
    @zeinabrahmani-tn8rq 7 місяців тому +1

    I've watched all of your videos on Concurrency and Multithreading, and they were incredibly informative. Thank you!

    • @JakobJenkov
      @JakobJenkov  7 місяців тому +1

      Thank you very much !!
      I am happy you found them useful ! 😊

  • @TECH_KG
    @TECH_KG 7 місяців тому +1

    Thanks for this amazing playlist and clear explanations. Learned a lot from this!!!

    • @JakobJenkov
      @JakobJenkov  6 місяців тому

      You are very welcome! :-)

  • @loyyeeko1231
    @loyyeeko1231 9 місяців тому +2

    you make Java so much more interest! thank you!

    • @JakobJenkov
      @JakobJenkov  9 місяців тому

      Thanks a lot for your kind words !! 😊 ... and you are welcome !! 😊

  • @sengao7062
    @sengao7062 7 місяців тому

    Lengend Jakob thanks for your explaination on java topics with deep insight

  • @personalaccount1515
    @personalaccount1515 9 місяців тому +2

    Excellent tutorial, thank you very much!

    • @JakobJenkov
      @JakobJenkov  9 місяців тому

      You are welcome ! ... and thank you for your kind feedback! :-)

  • @kimo8154
    @kimo8154 9 місяців тому +2

    as always, you're the best.
    thank you very much ^^

    • @JakobJenkov
      @JakobJenkov  9 місяців тому +1

      Thank you very much :-)

  • @farrukhahmedsid
    @farrukhahmedsid 2 місяці тому +1

    Bro, your tutorials are amazing..
    Waiting for Structured Concurrency in java..

    • @JakobJenkov
      @JakobJenkov  2 місяці тому

      Thank you 😊😊 Structured concurrency is an interesting area !! ... let me see when I have time for it 😊

  • @sheariley1910
    @sheariley1910 11 днів тому +1

    With the implementations shown in this video, aren't we wasting a thread in the forking phase which only does the sub-dividing and then it just waits for the sub-tasks to complete? Why not use the current thread to run one of the tasks after forking?

    • @JakobJenkov
      @JakobJenkov  3 дні тому

      You could probably do that... I am not sure how much of a difference it will make, though.

  • @avalagum7957
    @avalagum7957 6 місяців тому

    At 4:30, I thought that there was a single queue holding tasks. The executor choose a free thread to execute the next task in that single queue. In what executor, do we have a queue of tasks for each thread?

    • @JakobJenkov
      @JakobJenkov  6 місяців тому

      Some ExecutorService implementations have a single queue holding tasks internally. But the ForkJoinPool uses multiple queues.

  • @adhiprasetyo4052
    @adhiprasetyo4052 9 місяців тому +1

    should I learn operating system before learning java thread ?

    • @JakobJenkov
      @JakobJenkov  9 місяців тому

      No, that should not be necessary :-)

  • @pouyarezaei-u6n
    @pouyarezaei-u6n 9 місяців тому +4

    if Java was the Kingdom Jakob would be the King

    • @JakobJenkov
      @JakobJenkov  9 місяців тому

      I am probably more of an ambassador ;-)

  • @kdziolak
    @kdziolak 9 місяців тому

    Thanks for the brilliant video, as always, clear and concise. I am still curious how does the async IO, CPU sharing look like. In the examples all the tasks were completed e2e. Is there a correct way of using IO, to make sure it's FJP compliant?

    • @JakobJenkov
      @JakobJenkov  9 місяців тому

      There is no special way of using IO required. If you use blocking IO from within an ForkJoinPool, the thread will be blocked until the IO call finishes. The ForkJoinPool might start up extra threads in that case, but I don't actually know.

    • @kdziolak
      @kdziolak 9 місяців тому

      @@JakobJenkov Thanks for the reply. I'll do some reasearch, as you point our yourself, there should be a way to get multiple tasks to share the same CPU.

  • @avs6362
    @avs6362 7 місяців тому +1

    Best videos I've seen. I'm wondering why so low views !?

    • @JakobJenkov
      @JakobJenkov  7 місяців тому

      Thank you !!
      You will have to ask UA-cam about the views... who knows how the UA-cam algorithms actually work... 🤷‍♂️