Lecture 8: Semaphores and Monitors

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

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

  • @aarushiaiyyar
    @aarushiaiyyar 7 лет назад +34

    Guys, this guy is great. Watch the entire series for clear explanation in concepts of OS.

  • @BrandNewByxor
    @BrandNewByxor 5 лет назад +11

    Incredibly articulate teacher. Clearly understands the concepts in their most basic form, and communicates them seamlessly.

  • @ROSHANKUMR-ze1ri
    @ROSHANKUMR-ze1ri 9 месяцев назад +1

    i am from india and learning this course with you is worthful for me .

  • @yapingyuan2596
    @yapingyuan2596 2 года назад

    Clear explanation and cute looking. He's the teacher every student dreams about.

  • @thanushanx
    @thanushanx 8 лет назад +4

    This guy is awesome. Great explanations

  • @exxxxcellent
    @exxxxcellent 9 лет назад +4

    Thank you, this was so helpful! You are a great teacher.

  • @IOAyman
    @IOAyman 10 лет назад +3

    Well I've only viewed the Monitors part and it was clear enough for me :) Thank You!

  • @Marius-vw9hp
    @Marius-vw9hp 5 лет назад +11

    I close my eyes and pretend its David Scwimmer.
    But seriously, great teaching.

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

    The world of competitive programming is soo awesome I came here after being an expert on CF , easily understand implementation and behaviour

  • @JerryOmann
    @JerryOmann 4 года назад +2

    Can not see the blackboard from here :D 20:38

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

      ruclips.net/video/3KJeK-UUADA/видео.html

  • @clearove4699
    @clearove4699 2 года назад

    finally someone explain Hoare and mesa implementation differences

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

    Can anyone help to explain why the Signal() if statement is "value 0"? (Around 7:40). I guess I'm missing something but I thought that we only want to remove P from the Queue and wake it up if the semaphore has resources available.

    • @disorder1111
      @disorder1111 7 лет назад +4

      You probably do not need the answer anymore but it took me some time to figure this out as well, so for anyone else wondering the same thing: Value

    • @AnkitKumar-hw1oo
      @AnkitKumar-hw1oo 3 года назад +1

      @@disorder1111 helpful man, thankyou. Spend a lot of time on this.
      just to add on, when there is no empty critical section, we are just adding the new thread to the queue and blocking it, which means the thread does not have a start again from scratch. it can start working again after the signal call which means the critical section is empty and someone can work on it.
      And that if statement is for the new processes that call the wait function.

    • @pranayreddy6337
      @pranayreddy6337 3 года назад +1

      Think of S value as number of available resources. When process wants to exit and it finds S > 0 it means that we have spare resources and there is nothing exiting process can do, apart from incrementing (freeing resource) and exiting. But when S

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

    Great Explanation

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

    Thanks for this great info. Can someone please explain why you would want to sleep in the critical section?

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

      No u are not in critical section if value is not positive, u will sleep and wait for ur turn in the queue

  • @samstutorials1611
    @samstutorials1611 9 лет назад +3

    Good explanation
    Thank you

  • @roberthaines6409
    @roberthaines6409 4 года назад

    Does anyone have this instructors name? I'm curious if he has any other courses which may be of use to me in the future. He's a great instructor.

  • @sergeybolshakov4899
    @sergeybolshakov4899 2 года назад

    Gold.

  • @sushanshakya
    @sushanshakya 2 года назад

    I am still not sure why is some function atomically executed.

    • @harshith_takkala
      @harshith_takkala 2 года назад

      Because nothing has to interfere in between, else context switch might happen

    • @sushanshakya
      @sushanshakya 2 года назад

      @@harshith_takkala But can't an interrupt occur inbetween the function ?

    • @harshith_takkala
      @harshith_takkala 2 года назад

      @@sushanshakya yes
      By implementing atomically, an interrupt cannot disturb the function

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

    genius

  • @sergeybolshakov4899
    @sergeybolshakov4899 2 года назад +1

    The guy in the background is still coughing.
    The girl is still cute.

  • @Dogst4r
    @Dogst4r 5 лет назад +4

    Please give that student a cough drop.