W6 L7 Semaphores

Sdílet
Vložit
  • čas přidán 6. 09. 2024

Komentáře • 11

  • @amanyadav-lz1lf
    @amanyadav-lz1lf Před 6 lety +17

    NPTEL videos are amazing. I needed a deep understanding of OS and was having hard time finding the right resources but this definitely helped.

  • @Sr4116
    @Sr4116 Před 4 lety +1

    I dont understand the problem with mutex. When the 1st process executes and count is 0, then context switching happens and items are added, it will again come to the 1st process, now since reg value is still points to 0, i should go to sleep(full); instruction. But why is it waiting?

  • @pradhumnkanase8381
    @pradhumnkanase8381 Před 4 lety +1

    will the mutex problem get solved if we replace the following statements -
    "if(count == 1)" with "if(count >=1)" in producer.
    "if(count == N-1)" with "if(count

  • @confuseddreamerr
    @confuseddreamerr Před 4 lety

    when does the consumer load zero into the 'count', it is global right? so by the time it has a context switch back from producer the value of count should be 1

  • @wakanda_forever6676
    @wakanda_forever6676 Před 4 lety

    In producer-consumer problem code,Why did he declare 2 mutexes empty n full instead it can be done by one mutex only.

  • @sayalijadhav2466
    @sayalijadhav2466 Před 6 lety

    What is difference between remove the item and consume the item 6:08

  • @ayushjindal4981
    @ayushjindal4981 Před 3 lety

    essentially

  • @swagatata
    @swagatata Před 6 lety +1

    The mutexes full and empty are incorrectly placed. Consumer should block on empty and producer should block on full. This will still work properly but the mutexes could be named better.

    • @_chappie_
      @_chappie_ Před 5 lety

      had me confused

    • @stoka43
      @stoka43 Před rokem

      Indeed, I confused me. But, I wonder what do we need count for ?

  • @jeanleo3218
    @jeanleo3218 Před 7 lety

    Could you upload your powerpoint please?