Simple Locking Protocol | Concurrency Control

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

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

  • @jkj1263
    @jkj1263 4 года назад +3

    UPSS!!! 3.00 is wrong! the phrase: "another transaction can apply exclusive lock" is not true! Correction: Only shared lock (read) request could be applied when a shared lock has already obtained.

  • @KCIsMe
    @KCIsMe 5 лет назад +2

    Lol all these people correcting his first example without finishing the video. He corrected himself later my dudes.

  • @icscybersecure
    @icscybersecure 6 лет назад +12

    If a transaction has share lock, you CAN'T apply exclusuve lock! FIRST EXAMPLE (with x in circle) IS WRONG!

  • @maxvandoorn3040
    @maxvandoorn3040 5 лет назад

    Love your videos, you're saving my life.

  • @shashankkumar1201
    @shashankkumar1201 8 лет назад +3

    In Transaction T1, we need to acces A first. So shouldn't you have apply shared lock on A to read it first and then Lock-x to write it ?

    • @KobeB24Lakers24
      @KobeB24Lakers24 5 лет назад

      An exclusive lock allows for T1 to read and write to A

    • @KobeB24Lakers24
      @KobeB24Lakers24 5 лет назад

      It also helps to note that a general assumption is that in order to write to a data item, you must read it first

  • @gadgetarena.premium
    @gadgetarena.premium 8 лет назад +3

    how someone can write a locked item x shared lock in t1 how t2 is accesing it writing it need to first unlock or release the item x incompatible.

    • @PraveenSaraogi360
      @PraveenSaraogi360 8 лет назад +6

      Exactly
      We cannot obtain an exclusive lock on a data item which is already having shared lock

    • @targetsoso4198
      @targetsoso4198 8 лет назад

      Both the transaction is different. they are not performing parallelly...

  • @ahtisham6597
    @ahtisham6597 7 лет назад +2

    *If Reading data item does not need locking* then why do we have shared lock ??

    • @KobeB24Lakers24
      @KobeB24Lakers24 5 лет назад

      It still needs locking because of write operations

  • @aayushdewan1170
    @aayushdewan1170 8 лет назад +1

    amazing

  • @manisai8055
    @manisai8055 8 лет назад

    can you show you how to lock a table(or)database in mysql

  • @lonewolf6410
    @lonewolf6410 6 лет назад

    Can someone explain me why there is a need for locks???
    I am not able to understand... :(...

  • @twinklegarg1413
    @twinklegarg1413 3 года назад

    That means shared exclusive locks have no advantages

  • @harshilsaini3081
    @harshilsaini3081 8 лет назад

    plz upload next video

    • @boogermanss4
      @boogermanss4 8 лет назад

      +Harshil Saini lets hope for best

  • @twinklegarg1413
    @twinklegarg1413 3 года назад

    Sir pls reply