Mutex VS Semaphore In C++

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

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

  • @sabbulingineni
    @sabbulingineni 11 месяцев назад +2

    Nice to see you rupesh, i am following this channel from past 5-6 years and thanks for c++ knowledge u r giving❤

  • @mehtubbhai9709
    @mehtubbhai9709 10 месяцев назад +3

    Very good content! Also your voice is ASMR; very calming to listen to. Makes me want to binge watch :)

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

      Thanks man..

  • @TMNIARB3A
    @TMNIARB3A 7 месяцев назад +1

    great explanation of the difference between sem and mutex, thank you sir!

  • @SibaPrasadNayak-r4s
    @SibaPrasadNayak-r4s 4 месяца назад

    Thank you bro.. You are doing really great job.. you make it so easy to understand.

  • @jaykishansingh1
    @jaykishansingh1 7 месяцев назад +2

    Now interview questions are getting repeated and sometimes i know what they are going to ask. This is all because of you. Thank you sir.

    • @sidmatadh
      @sidmatadh 8 дней назад

      Hey buddy if you don’t mind could you please share me the list of questions asked in CPP interview? Its been a while since i had given an interview, finally thinking of attending one

  • @Sillmjolke1g
    @Sillmjolke1g Месяц назад

    Thank you this was a very good explanation!

  • @mystery5868
    @mystery5868 11 месяцев назад +3

    Lovely explanation

  • @yassine_ann
    @yassine_ann 8 месяцев назад

    THE Best Explanation

  • @levondarbinyan3934
    @levondarbinyan3934 Месяц назад

    Thank you! Great explanation!

  • @niklastekaat8658
    @niklastekaat8658 7 месяцев назад

    Great Explanation! Instantly understood the difference

    • @CppNuts
      @CppNuts  4 месяца назад

      Thanks dude!!

  • @subhaspaul495
    @subhaspaul495 10 месяцев назад +1

    6:51 is it require to limit count = no of resource?

  • @muralikrishnanayyappan6513
    @muralikrishnanayyappan6513 6 месяцев назад

    thank u my friend ! helps with the tortuous interviews these days !

    • @CppNuts
      @CppNuts  4 месяца назад

      Happy to help!

  • @VYSHNAVI-s3c
    @VYSHNAVI-s3c Месяц назад

    your videos are amazing

  • @FS-rm1yg
    @FS-rm1yg 11 месяцев назад +1

    The threads on semaphore read/write to the same resources simultaneously?
    How the access of a variable is garanteed in a group of threads?

  • @LinkSF1
    @LinkSF1 4 месяца назад +1

    From everything I read, sephamore seems to be almost always the way to go. The only time I want mutex is when there’s only a single thread I need controlled AND that control needs to happen within the thread that initiated the mutex. Is this your understanding as well?

    • @CppNuts
      @CppNuts  4 месяца назад +1

      Actually semaphore is a signaling mechanism and mutex is locking mechanism, this is the simple and short to understand and remember forever.

  • @chandrashekharswain-g7l
    @chandrashekharswain-g7l 7 месяцев назад

    Hi Rupesh, I have a doubt about use case of synchronization object, if two separate applications want to access/modify a same file , which synchronization object can used to synchronize them?

  • @pujabglr
    @pujabglr 2 месяца назад

    What if in case of semaphore example explained in the video the thread count is 2, and both t1 and t2 try to access the same slot of resource out of 4 at the same time how will the systen ensure effective assignment?

  • @SatyamKumar-bw4vi
    @SatyamKumar-bw4vi 11 месяцев назад +1

    Gajab, appka chera dekha pehlibaar
    Please appna linkedin do.
    THanks mai appse Bahut kuch sikha ho

    • @CppNuts
      @CppNuts  11 месяцев назад +1

      Thanks dude..

  • @prashantupadhyay5110
    @prashantupadhyay5110 4 месяца назад

    Why title is c++, is it for implementing

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

    Bro why you revels your face.
    At least you should keep curiosity na , who is this guy giving such a great explanation like.

    • @leelaseshukumarsanka649
      @leelaseshukumarsanka649 11 месяцев назад +1

      Small request, please do videos like initial.
      Reason is : we like your voice while listening we are in imagination mood.
      Easily understand that concept with help of your way of explanation.
      Thanks once again your dedication in this field.

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

    I am professional thumbnail, graphic designer and video editor.
    If there is any project then here is my portfolio.

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

    You don’t, I am big fan of you since 2018 .
    I started Watching your videos for my interviews and learning point purposes also.