Deadlocks vs Livelocks - Java Concurrency - Java Brains

Поділитися
Вставка
  • Опубліковано 2 гру 2024
  • This video is from the full course:
    www.javabrains...
    Get this course and more at www.javabrains.io
    In this video, you will learn about liveness, a property of software applications. You will also learn about deadlocks, livelocks and starvation, which are three possible causes of liveness in a concurrent program.

КОМЕНТАРІ • 30

  • @seyedaliroshan2386
    @seyedaliroshan2386 3 роки тому +10

    Javabrains is the best. Seriously I saw my first tutorial from this channel almost 6 years ago and after these much years it still contains new stuff for me. Tnx JavaBrains guys specially u, Koushik

  • @sujan_kumar_mitra
    @sujan_kumar_mitra 4 роки тому +8

    Nice analogies. Beautifully explained.

  • @roshannandyala2565
    @roshannandyala2565 4 роки тому +3

    These information is very very important in real time.Thank you so much your effort

  • @Manish0606
    @Manish0606 4 роки тому +1

    Thanks so much koushik

  • @Ps-tp5nu
    @Ps-tp5nu 4 роки тому +1

    Hi sir,
    I'm very confused regarding learning MERN stack Or java backend(Spring & Spring boot) in terms of jobs and future prospective. Please please reply.

  • @abhishekpatidar9903
    @abhishekpatidar9903 4 роки тому +1

    Sir please create a video on Payment gateways in spring boot applications.

  • @vanishasingh7800
    @vanishasingh7800 3 роки тому

    @javaBrains I cant access the members only content after having the subscription .

  • @erikbustos2187
    @erikbustos2187 3 роки тому

    Thanks for the amazing content

  • @whambalamb
    @whambalamb 4 роки тому +1

    Solid material! Thank you

  • @tusharpawar5610
    @tusharpawar5610 3 роки тому

    Do you have tutorial on multithreading?

  • @molekuax8646
    @molekuax8646 4 роки тому +1

    Thanks man, I appreciate your work a lot!

  • @codegeek8256
    @codegeek8256 4 роки тому

    What stack did you use to develop your website javabrains.io?

  • @indracharanpatil2367
    @indracharanpatil2367 3 роки тому +1

    Hi Kaushik. Fantastic video! One suggestion I think you should come up with another section say "quick bytes" were videos are not more than 10mins.. Helpful for me to learn something quickly during travel to office or in loo 😂

  • @chaitanyatanwar8151
    @chaitanyatanwar8151 4 роки тому

    Thank you!

  • @TomarSahab
    @TomarSahab 3 роки тому

    Java 8 added changes to threading, thread pool and future can you create a vid on this as I am addicted to your style of teaching

  • @sandeepmreddy2788
    @sandeepmreddy2788 4 роки тому +1

    Hi koushik sir..!
    Have you ever had a deadlock situation when you coding for big projects?
    If you have, how did you find it?

    • @PeterPetrakis
      @PeterPetrakis 3 роки тому

      ... the debugger? When something is finally deadlocked, it's pretty easy to find. Solving the "why" is the hard part.

  • @TomarSahab
    @TomarSahab 3 роки тому

    is there any java brains video on the Future and Callable concept of Java?

  • @saswatsenapati7870
    @saswatsenapati7870 4 роки тому

    Isn't it like thread A waiting for resources which thread B is holding and thread B is waiting for resources which thread A is holding. Saying thread A waiting for thread B ? Is that correct ???

    • @Java.Brains
      @Java.Brains  4 роки тому +1

      Yes, that's what I show with the nested synchronized blocks. Thread A is waiting because it needs thread B to release a lock, and vice versa.

  • @SanjayKumar-by6oc
    @SanjayKumar-by6oc 4 роки тому

    Analogies were ditto.
    Soln is:~ java.util.concurrent.lock

    • @Java.Brains
      @Java.Brains  4 роки тому +1

      Thanks! So, now you will never forget! ;) The solution is to use locks carefully, either implicit or explicit locking

  • @ashishsadana1365
    @ashishsadana1365 4 роки тому

    superb...

  • @shubhampatel7870
    @shubhampatel7870 4 роки тому

    K thanks man

  • @sonyantony9802
    @sonyantony9802 3 роки тому

    I think your reference to circular locks is incorrect :
    Java synchronized is 'reentrant' - meaning the same thread can enter synchronized methods on the same object any number of times. So if A object calls a method on B object which calls a method on C object which calls a method on the original A object, there will not be any deadlock *as long as the thread is the same*

  • @sambit8011
    @sambit8011 4 роки тому

    First ❤️

  • @sharadchandakacherla8268
    @sharadchandakacherla8268 3 роки тому

    Livelock example , hahahaha

  • @seyedaliroshan2386
    @seyedaliroshan2386 3 роки тому

    Javabrains is the best. Seriously I saw my first tutorial from this channel almost 6 years ago and after these much years it still contains new stuff for me. Tnx JavaBrains guys specially u, Koushik

    • @koala_8027
      @koala_8027 3 роки тому

      This man is a legend, he singlehandedly introduced me to spring development.
      He's like a compiler, compiling complex topics into plain english.