Locks in Java Concurrency | Java Multithreading

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024

Комментарии • 4

  • @Manimaran-tb9kw
    @Manimaran-tb9kw 10 месяцев назад +1

    The video was informative. But pls stop music which u use in video. That's making a distraction while listening.

    • @LazzyProgrammer
      @LazzyProgrammer  10 месяцев назад

      Sure Mani,thank you for your feedback 🙏

  • @sagarshekhar6296
    @sagarshekhar6296 5 месяцев назад

    Why not use synchronized here? When to use locks?

    • @LazzyProgrammer
      @LazzyProgrammer  5 месяцев назад

      That depends on your application requirements, Locks provide functions such as:
      explicit locking and unlocking,
      we can add time waits or interruptable locks
      We can also define fairness policies for thread scheduling etc