c# (Csharp) Threading Interview questions :- What is AutoResetEvent and ManualResetEvent ?

Поділитися
Вставка
  • Опубліковано 28 січ 2025

КОМЕНТАРІ • 63

  • @dnfvideo
    @dnfvideo  3 роки тому

    Do not miss our Interview Question video series
    30 Important C# Interview Questions : ua-cam.com/video/BKynEBPqiIM/v-deo.html
    25 Important ASP.NET Interview Questions : ua-cam.com/video/pXmMdmJUC0g/v-deo.html
    25 Angular Interview Questions : ua-cam.com/video/-jeoyDJDsSM/v-deo.html
    5 MSBI Interview Questions : ua-cam.com/video/5E815aXAwYQ/v-deo.html

  • @sikeeeee
    @sikeeeee 8 років тому +1

    Your videos are clear and easy to understand. In fact your tutorials including this video helped me pass the technical interviews in one of the biggest investment bank in UK. Thanks a lot.

  • @dnfvideo
    @dnfvideo  12 років тому +1

    yes sir i will starting soon. These kind of comments make my day. Thanks a lot.

  • @rayrelrayrel267
    @rayrelrayrel267 3 роки тому

    This is best video i seen ever! Thank you sir! I wish you million likes and subscribers

  • @tyrellwreleck4226
    @tyrellwreleck4226 6 років тому

    The way you pronounce "ordinary" is so freaking cool. By the way, very well elaborated metaphor about their difference. Thumbs up.

  • @PaoYong
    @PaoYong 10 років тому

    This is REALLY useful. I'm taking a class that uses C# and your tutorials are super clear and helpful. THANKS!!!!!!

  • @forthenguyen
    @forthenguyen 12 років тому +1

    Hey, I really enjoy your videos. Very informative and straight to the point. Thanks!

  • @ronaldabellano5643
    @ronaldabellano5643 5 років тому

    The best explanation and sample. You are the greatest.

  • @kohlismunishk
    @kohlismunishk 12 років тому

    I hardly go to my Facebook account but still I shared. But let me tell you the work which you are doing have cleared so many confusing things and concepts, I was struggling initially. I am pretty sure the way you explain and I can see force in your voice and thoughts, it will not get un-noticed. I am actually going to buy your video set. One question: Will you keep on working on new MS technologies for example VS 2012. Do you have anything in that?

  • @Mensana88
    @Mensana88 12 років тому +14

    Decent video, but you failed to explain the concept of the state of the event. That is the Boolean flag passed to the constructor of the event. The threads will not block on WaitOne if the event is in the "Set" state. The difference between ManualResetEvent and AutoResetEvent is that the auto kind will revert back to a "Reset" state automatically after being unblocked by a "Set" call. The manual will not revert back, but will keep its "Set" state until someone resets it manually.

  • @joebrady9829
    @joebrady9829 9 років тому +6

    Excellent explanation, thanks for this!

  • @nguyentrananhnguyen7900
    @nguyentrananhnguyen7900 3 роки тому

    love the gate sample, thank you for the lesson

  • @krishnadeshpande2570
    @krishnadeshpande2570 5 років тому

    Superb video!!! Kindly keep posting !!!

  • @mattgal3810
    @mattgal3810 2 роки тому

    Very helpful and quite understandable. Thanks

  • @Kennnn264
    @Kennnn264 8 років тому +1

    I have been programming in .NET for 3 years yet threading still is a bitch. Spawning threads is easy. Managing them and invoking safely is harder. This video helped me understand perfectly. Usually I resort to MSDN but that documentation was too complex for me.

  • @orochinagi1111
    @orochinagi1111 8 років тому

    great video..! really liked the turnstyle definition in the end

  • @IchbinChandra
    @IchbinChandra 9 років тому +1

    Sir,
    At 0:58 it was stated that Thread 2 is sending signal to wait, but as per what I understood is Thread 2 never send signal to wait, but Thread 1 itself decide to wait until Thread 2 signals to start again.
    So basically we can only raise signal to start, but we cannot signal to wait.

    • @mohdamircaet
      @mohdamircaet 8 років тому +2

      I also thought the same at the very beginning of the video, when he said that T2 will signal to wait for T1. This is wrong. And I used to like his videos when I was in college,but as I learnt things as a software professional, I have observed that all the videos of shiv are wrong, he gives wrong examples and bad theory,which might attract students, but conceptually he is always wrong.

    • @TarunKomma
      @TarunKomma 5 років тому

      MOHD AMIR exactly my thoughts 👍🏼

  • @surajfrommumbai
    @surajfrommumbai 12 років тому

    Legendary contribution.

  • @SparkEnglishLevel
    @SparkEnglishLevel 3 роки тому

    superb explanation.

  • @SalahLFC11
    @SalahLFC11 5 років тому

    Nice video, I have a question though. I f multiple threads are on halt state then which thread Set method is going to invoke? Please answer

  • @anun3105
    @anun3105 3 роки тому

    Well explained. One query regarding autoreset event. Once set is called, threads will not be blocked even if Waitone called again. So how could we block the thread if required?

  • @techieSudhakar
    @techieSudhakar 3 роки тому

    Appreciate your videos. 👍 Nice one

  • @hodgej
    @hodgej 11 років тому

    Great video!!! Clearly and well explained.

  • @sandipjadhav3898
    @sandipjadhav3898 12 років тому

    Great work you are doing !! It helps me a lot!!

  • @DimmuBorgiry
    @DimmuBorgiry 3 роки тому

    great explanation. thank you very much

  • @stevenshichn
    @stevenshichn 7 років тому

    Very clear explanation. Thank you very much.

  • @uadeveloper839
    @uadeveloper839 8 років тому

    Thanks for the explanation of difference!

  • @wrght2002
    @wrght2002 10 років тому

    Thanks for the help, your video was very useful and just overall a great educational piece

  • @ShahriarHusainy
    @ShahriarHusainy 12 років тому

    Very nicely explained! Thank you so much!

  • @igorkuliev8357
    @igorkuliev8357 6 років тому

    Thanks for the clear explanation!

  • @tsunghsiwu
    @tsunghsiwu 11 років тому

    great video !! clear and well delivered

  • @avishcheetaram1807
    @avishcheetaram1807 6 років тому

    Finally understood. Thanks so much.

  • @rupeshkamble9105
    @rupeshkamble9105 3 роки тому

    Great video

  • @sadfjlkjsdivje
    @sadfjlkjsdivje 8 років тому

    subscribed, great anology at the end. Thanks you

  • @shyampramanik5157
    @shyampramanik5157 12 років тому

    Hi,can u please explain what are Thread.join() and Thread.Abort() methods

  • @yt.arunthakur
    @yt.arunthakur 6 років тому

    marvelous work of piece :) thanks

  • @shibanarayanmohapatro6263
    @shibanarayanmohapatro6263 5 років тому

    Nice video

  • @vrajeshbadgujar
    @vrajeshbadgujar 8 місяців тому

    Helpful! Thanks

  • @spa.3239
    @spa.3239 3 роки тому

    Very clear thanks

  • @jyothipriyanka
    @jyothipriyanka 10 років тому

    COuld understand it better .. Thank You

  • @hamarasansarharsh
    @hamarasansarharsh 6 років тому

    in my wpf application more than 100 task is running but ui is hanging is there any solution for this?
    I want to run all threads together

  • @DavidAlexandru11
    @DavidAlexandru11 7 років тому

    Hello and thanks for this awesome video.
    I have a question about how to call objAuto.Set() from another class. If I call from same class work perfectly.
    Thanks again

  • @shantkumar.biradar6153
    @shantkumar.biradar6153 7 років тому

    Great video. Appreciated !!!

  • @isabhiji
    @isabhiji 9 років тому

    Also need to discuss reset part

  • @nimnieden1754
    @nimnieden1754 10 років тому

    really helped me, thanks a lot.

  • @GautamSingh-ww2oo
    @GautamSingh-ww2oo 10 років тому

    Thanks A lot man... Its really helped..

  • @Shree_Jagannatha
    @Shree_Jagannatha 9 років тому

    really good video

  • @techbitar
    @techbitar 12 років тому

    VERY USEFUL! THANK YOU!

  • @HassanChaaban
    @HassanChaaban 10 років тому

    VERY USEFUL

  • @manjeetnandal1
    @manjeetnandal1 5 років тому

    Nice

  • @glpathy
    @glpathy 9 років тому

    Thanks it helped for me

  • @gameking008
    @gameking008 12 років тому

    Thanks so much.

  • @jugnu361
    @jugnu361 6 років тому

    great

  • @vd853
    @vd853 7 років тому

    Why not just use one waitOne() for autoresetevent instead of using manualresetevent?

  • @AlekseyFilippovHuzzah
    @AlekseyFilippovHuzzah 9 років тому

    God bless you in Jesus name! That is really cool!

  • @ravick4u
    @ravick4u 12 років тому

    G8

  • @AndrewSteitz
    @AndrewSteitz 11 років тому

    GooglePlus +1

  • @GodSincerityStar
    @GodSincerityStar 9 років тому

    Thanks this helped me alot too!