Introduction to Semaphore

Поделиться
HTML-код
  • Опубликовано: 17 янв 2018
  • Introduction to Semaphore
    watch more videos at
    www.tutorialspoint.com/videot...
    Lecture By: Mr. Arnab Chakraborty, Tutorials Point India Private Limited

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

  • @TutorialsPoint_
    @TutorialsPoint_  9 месяцев назад

    Get Certification in Complete Operating System: www.tutorialspoint.com/operating_system/index.asp
    Use coupon ""RUclips12"" to get “FLAT 12%’’ OFF at Checkout.

  • @yanmoenaing71
    @yanmoenaing71 4 года назад +5

    Incredible Indians !!!!!!!!!!
    No topic that the Indian don't teach !!!!
    Nearly all of the Indian instructors I have learnt from are good at representing the difficult questions with simple examples and explanation.
    Thank you Sir.

  • @81asimayub
    @81asimayub 4 года назад +10

    The best analogy that comes to my mind is that or the sign on an airplane toilet. When it is vacant the sign is green, as soon as someone enters and locks the door the sign turns red. Which means all other people queue up. When the person leaves the toilet the sign changes to green, and one of the members of the queue enters, turning it back to red, while people in the queue wait for their turn.

  • @HumaRizwan
    @HumaRizwan 4 года назад +19

    well explained SIR.........Who else watching in 2020?😀

  • @OwzaB
    @OwzaB 5 лет назад +21

    The way you make it seem so simple. Thank you, sir, I love your explanations.

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

      ruclips.net/video/2dIaanZ1gbY/видео.html
      watch my video also for this topic

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

    Wonderful, Superb, Mind blowing explanation Sir.
    Love from Bangladesh.

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

    I like this professor. He is calm and relaxed. I feel like he not only has surface level knowledge, but deep knowledge as well. He veda it.

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

    Firstly you have an amazing way of talking, Secondly great content!

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

    Sir, your superb explanation in shortest time is awesome!

  • @aymanaitelaouad5015
    @aymanaitelaouad5015 5 лет назад +1

    What an incredible accent
    Just woaaaah

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

    thank you this video was very helpful

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

    i am not someone expert i just learned it from my teacher that ..in that while loop you should have a semicolon after s

  • @050zaher
    @050zaher 5 лет назад

    thanks alot ❤👏

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

    Thank you, sir, really helpful!

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

      ruclips.net/video/2dIaanZ1gbY/видео.html
      watch my video also for this topic

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

    well explained SIR

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

    how can i get an accurate description i dont speak india

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

    Thanks 😃

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

    very detailed lectures .....thanx sir for uploading

  • @AhmedMohamed-ke1bn
    @AhmedMohamed-ke1bn 4 года назад

    Thank you so much

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

    Please on captions for every video which u generated...

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

    Thanks for having short video😃

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

    Good explanation sir..👏👏👏

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

    Thank you sir

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

    @7:29 , Not able to understand, After some time, how Process p1 will come.please comment @Tutorials point

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

      it was in the ready queue waiting to get its share of the cpu

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

    Nice thank you

  • @mohokhachai
    @mohokhachai 11 месяцев назад

    Thanks

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

    thank u sir

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

    Wooow

  • @--sql
    @--sql 4 года назад

    Why not just have a function that takes a process and the delegate (critical section) as parameters which puts all the processes into a queue and sends a signal to the next process in the queue after the critical section is complete? This will allow you to put all the processes to sleep instead of busy waiting.

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

    Critical situations. Entry is restricted.

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

    nice explanation.

  • @GemaPratamaAditya
    @GemaPratamaAditya 5 лет назад +1

    nice example

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

    Dear sir,
    I am looking at the up & down implementation of linux semaphores.
    A good descritpion is also given at :
    [url]0xax.gitbooks.io/linux-insides/content/SyncPrim/linux-sync-3.html[/url]
    my understanding is that the spin_lock() & spin_lock_irqsave() are used when contention is between threads AND between thread and IRQ handler respectively.
    in case of up() & down(), the sempahore struct is protected using spin_lock_irqsave() and not spin_lock()!
    My understanding was that we dont make blocking calls like down() form irq context.
    does it mean that because IRQ handler form IRQ context can call up(), we need to protect this "semaphore" struct from concurecny, thats why we use spin_lock_irqsave()?
    Please help understand.
    Thanks
    Sujeet

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

    When will S go less than zero? :|

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

    love how he pronounces zero as gero :D

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

    Good one

  • @monsterking288
    @monsterking288 Год назад +1

    Hi

  • @monsterking288
    @monsterking288 Год назад

    Hi Siva

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

    how you will same semaphore variable in 2 different process?
    Are you saying you will be having IPC call (shared memory or TCP/IP) to update the variable?
    I am saying from the concept of mutex.
    As we need to have same mutex variable in both the thread so how you will have same variable in 2 different process?

    • @Rajat-il6kp
      @Rajat-il6kp 3 года назад

      well that's the semaphore for you.The semaphore lies in location which multiple processes can access to maintain synchronization

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

    Sir tell me one thing, in your given example why process P1 not started with
    Wait : ....
    Critical condition: .....
    Signal : .....
    You just just took your way, u did not followed the process of semaphore,
    Please clear my doubt

  • @randomtv3982
    @randomtv3982 5 лет назад +1

    zero not gyro

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

      It doesn't matter as long as you understand.

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

    very bad explanation!

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

    Thanks sir