Concurrency vs Parallelism | C# Interview Questions | Csharp Interview Questions and Answers

Sdílet
Vložit
  • čas přidán 23. 01. 2019
  • For more such videos visit www.questpond.com
    For more such videos subscribe / questpondvideos
    See our other Step by Step video series below :-
    JavaScript Interview Questions: • JavaScript Interview Q...
    C# tutorial for beginners(4 hrs):- • C# Tutorial for Beginn...
    ASP.NET MVC Core Interview Questions with answers:- • ASP.NET MVC Interview ...
    C# interview questions and answers:- • C# Interview Questions...
    Abstract class vs Interface in C# :- • Abstract Class vs Inte...
    Learn Azure Step by Step:- • Azure Tutorial for Beg...
    Azure AZ-900 fundamentals certification :- • AZ 900 Certification |...
    Angular Interview Questions and Answers :- • Angular Interview Ques...
    Learn Angular tutorial step by step tinyurl.com/ycd9j895
    Learn MVC Core step by step :- tinyurl.com/y9jt3wkv
    Learn Design Pattern Step by Step goo.gl/eJdn0m
    Python Tutorial for Beginners:- • Python Tutorial for Be...
    Learn Data Science in 1 hour :- tinyurl.com/y5o7qbau
    Learn Power BI Step by Step:- tinyurl.com/y6thhkxw
    PHP Interview Questions : • PHP Interview Question...
    Learn MSBI Step by Step in 32 hours:- goo.gl/TTpFZN
    Learn Tableau step by step :- tinyurl.com/kh6ojyo
    Learn SQL Server Step by Step tinyurl.com/ja4zmwu
    Learn SharePoint Step by Step in 8 hours:- goo.gl/XQKHeP
    concurrency vs parallelism
    -----------------------------------------------------------------------------------------------
    For more details :-
    🌐 Website : www.questpond.com
    📱 Mob. No. : +91-9967590707 / +91 7700975156 / +91-22-49786776
    📧Email : questpond@questpond.com / questpond@gmail.com / questpond@yahoo.com
    Share, Support, Subscribe and Connect us on!!!
    CZcams: / questpondvideos
    Twitter: / questpond
    Instagram : / questpond
    Facebook : / questpond
    #ConcurrencyvsParallelism #ConcurrencyinC# #ParallelisminC# #DifferenceBetweenConcurrencyandParallelism #CSharpInterviewQuestions #C#InterviewQuestions&Answers #C#InterviewQuestionsforFreshers

Komentáře • 86

  • @questpondvideos
    @questpondvideos  Před 3 lety +4

    ASP.NET, C# Job Market : czcams.com/video/H3JEWAp32-s/video.html
    30 Important C# Interview Questions : czcams.com/video/BKynEBPqiIM/video.html
    Software Architecture Interview Questions : czcams.com/video/AtTgcbLOqMM/video.html
    25+ OOPS Interview Questions : czcams.com/video/u99wAoBjDvQ/video.html
    20+ SQL Server Interview Questions : czcams.com/video/SEdAF8mSKS4/video.html
    10+ Power BI Interview Questions : czcams.com/video/Cozc9WNBRt4/video.html
    20 MSBI Interview Questions : czcams.com/video/Nw_sHEKnOUE/video.html
    SQL Server Joins : czcams.com/video/KTvYHEntvn8/video.html
    SQL Step by Step - czcams.com/video/uGlfP9o7kmY/video.html
    Angular Step by Step Tutorial for Beginners : czcams.com/video/-9VcW7MBDs8/video.html
    25 Angular Interview Questions : czcams.com/video/-jeoyDJDsSM/video.html
    25 Important ASP.NET Interview Questions : czcams.com/video/pXmMdmJUC0g/video.html
    35 Important JavaScript Interview Questions : czcams.com/video/Zb4dPi7CANU/video.html
    20 MySQL Interview Questions : czcams.com/video/9hfjC-BpY20/video.html
    5 MSBI Interview Questions : czcams.com/video/5E815aXAwYQ/video.html
    20 PHP Interview Questions : czcams.com/video/1bpNSynUrl8/video.html

  • @bengalibabu2435
    @bengalibabu2435 Před 5 lety +40

    Sirji you are from a different planet. Awesome master piece.

  • @SushrutKanetkar
    @SushrutKanetkar Před 3 lety +14

    One of the best teachers I ever came across ! Thank you sir, you are amazing

  • @hocky-ham324-zg8zc
    @hocky-ham324-zg8zc Před 3 lety +12

    Using your definition at around 17:15, threads are contained in the same process as the main thread, and therefore are run on the same core. I think the overall explanation was good but in order for multiple tasks to occur on different cores, you need separate processes, not threads. Threads are also context switching, but the specifics of when to join the threads, etc. is done manually whereas async/await is done for you by the language.

  • @dorinpopa6962
    @dorinpopa6962 Před 3 lety +3

    The best explanation of those concepts I have found on CZcams! 10/10!

  • @antonyspiano2403
    @antonyspiano2403 Před 3 lety +2

    Great job, I searched more than 20 videos for sure , to get a confident view on this.. you did it . Great job!!! Thank you!

  • @rubyc7771
    @rubyc7771 Před měsícem

    Thanks for teaching like we're dummies. I can't express how much I appreciate your teaching style.

  • @iam_ashishmishra
    @iam_ashishmishra Před 5 lety +4

    Really Impressive... Thank you for making me clear about these concepts.

  • @johnnguyen1655
    @johnnguyen1655 Před 4 lety +2

    I love those explanations. Thanks for your hard work!

  • @tonybapuji5956
    @tonybapuji5956 Před 3 lety +1

    Excellent tutorial with fundamental points clearly and concisely explained.
    Thank you so much!

  • @publicfare8939
    @publicfare8939 Před 3 lety +2

    the explanation is so detail and easy to understand, thanks for your hardwork

  • @TarunKomma
    @TarunKomma Před 5 lety

    To the point with lucid explanation ... hats off sir ji

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

    Such a great explanation. Thank you sir.

  • @adelhishem1
    @adelhishem1 Před 5 lety

    Thank you for the video, really nice work.

  • @rishabhmalhotra6474
    @rishabhmalhotra6474 Před rokem +2

    what an amazing video! great work and very glad to be able to understand these concepts as I have always somewhat struggled with these

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

    Thank you for this wonderful Tutorial.

  • @JourneywithNarasimha
    @JourneywithNarasimha Před 5 lety

    Thank you so much..... Thanks alot for sharing such a wonderful stuff

  • @JagadishMori
    @JagadishMori Před 5 lety +1

    Very helpful and easily explained, thanks again

  • @vineetchaudhary7082
    @vineetchaudhary7082 Před 3 lety

    I am a big fan of you sir. What a knowledge you have sir. Thanks a lot for such tutorials.

  • @zeenatmalik2816
    @zeenatmalik2816 Před 4 lety +2

    This is the best lecture on these topics 👍

  • @rr9336093122
    @rr9336093122 Před 5 lety

    was really clear and concise....thanks

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

    Excellent explanation. Thank you 🙏.

  • @tnduc91
    @tnduc91 Před 5 lety

    great work mate, thank you!

  • @alshifamedicine
    @alshifamedicine Před 5 lety +1

    Nice Explanation
    At 11:44 if instead of placing debugger on LINE17 place it at LINE13
    and debug through code and observe the threads, see multiple threads as in case of parallelism.
    It appears async await use multiple threading in background but if its using multiple threads then
    why they need context switching?

  • @shashankpandey1019
    @shashankpandey1019 Před 5 lety

    You are the Real Rocks Sir 🙏🙏🙏

  • @vrajeshbadgujar
    @vrajeshbadgujar Před měsícem

    You are a Gem. Thanks!

  • @PankajKumar-tb5up
    @PankajKumar-tb5up Před 5 lety +7

    Last images summarizes the whole lecture :)

  • @saikiranankam7617
    @saikiranankam7617 Před 4 lety

    Super impressive. Excellent 🙏

  • @successquotes-ts3dw
    @successquotes-ts3dw Před 4 měsíci

    Your are really producing good content sir

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

    Great job. Very clear.

  • @VIjayKumartheh2o
    @VIjayKumartheh2o Před 4 lety +5

    So I have question after looking into this video. Is Async & Await coming under concurrency? That's what I understood after looking at the Threads in debug mode.

  • @deltaphilip8611
    @deltaphilip8611 Před 3 lety +1

    This has cleared up a lot of confusion for me.

  • @uribe2211
    @uribe2211 Před 5 lety

    Great!! thanks for sharing

  • @user-de7ws7in8t
    @user-de7ws7in8t Před 5 lety

    You are the real MVP.

  • @vaishalidube4312
    @vaishalidube4312 Před 3 lety

    Beautiful explanation!!

  • @abidzahid2974
    @abidzahid2974 Před 10 měsíci

    Explained very well now I must say I am theoretically clear on concurrency and parallism

  • @aktchungrabanio6467
    @aktchungrabanio6467 Před 3 lety +2

    Wonderful explanation. Just a small correction: Instead of determistic, it should be deterministic. Other than that, excellent content.

  • @mferreira1231
    @mferreira1231 Před 3 lety

    Superb explanation!

  • @imsraone
    @imsraone Před 10 měsíci

    Last picture was just awesome and make really sense :)

  • @danyaathiyaguthiyagu8175

    Async have .configuration(false or true) in their calling level . That is helpful for performance ?

  • @kumargaurav8619
    @kumargaurav8619 Před 5 lety

    Nailed it!!!

  • @ashutoshmishra2170
    @ashutoshmishra2170 Před 3 lety

    I am big fan of your teaching 💕

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

    Hi, when you said that threads were not created, because you didn't want to run parallely, but threads can run concurrently as well, right?

  • @Dharmeshpatel-to2nd
    @Dharmeshpatel-to2nd Před 4 lety +1

    Very nicely explained :)

  • @gipbwok2008
    @gipbwok2008 Před 2 lety +1

    Good explanation. I think at 14:50 the word is "undeterministic".

  • @petrcipera8999
    @petrcipera8999 Před 3 lety

    Nicely explained!

  • @hornybastard
    @hornybastard Před 3 lety

    thanks. very useful

  • @ananyafrederick2524
    @ananyafrederick2524 Před 4 lety

    Beautiful!!!!!!

  • @321zipzapzoom
    @321zipzapzoom Před 3 lety

    Nice explanation Sir

  • @navneethegde5999
    @navneethegde5999 Před rokem

    Nice explanation!

  • @slobodantajisic2762
    @slobodantajisic2762 Před 2 lety

    Since one core can have multiple threads, is performing different tasks on different threads of the same core parallelism?

  • @TheRetrospective
    @TheRetrospective Před 3 lety

    Good video! One quick tip: 'deterministic' is correct spelling and not 'determistic'.

  • @saikiranbhr
    @saikiranbhr Před 4 lety +5

    Hi, As mentioned if async and await doesn't use threads then i have a doubt, I have created 2 async methods which are having some 20secs of code (as an example task.delay(20seconds)) and i have called them one after the other. If async concept doesn't use threads and if it only uses context switch then i think in order to run my code and show me the result it shoud take 40seconds ideally. But when i tried, it is taking only 20sec and gives me correct and expected output. Could you please clarify the doubt and do correct me if i am missing anything. Thanks in advance.

    • @KanhaiyaKumar-rn6zg
      @KanhaiyaKumar-rn6zg Před 4 lety +2

      you are right async and await are not just context switching, It is about multi theading as well. if you want to know more detail about this o'really media has very good on async and await.

    • @AB-cn5hb
      @AB-cn5hb Před 3 lety +2

      I hope I am not late. It's case of multithreading. He mentions in video about context swapping that only happens if no more multithread is available. For example, I have 2 core CPU and it has multithreading enabled. That means, I have generally speaking 4 core. So, when u use async, it is as it is working in different thread hence u see 20 sec. But suppose, I have 1 core CPU no multicore or multithreading. That's means all tasks has to perform in same thread. Hence, context swapping or time slicing. In this case, there is no benefit of using async other than responsive.

    • @ahmed19924
      @ahmed19924 Před 2 lety

      @@AB-cn5hb In simpler words, threads basically does work on the same 'Worker thread' but if we use 2 tasks then it will use two different 'worker thread'. Correct me if I'm wrong.

  • @nithinchandran7959
    @nithinchandran7959 Před 5 lety

    You just cracked something i was worried about for many days..when are u going to release the second part?

  • @programmadore9588
    @programmadore9588 Před 3 lety

    very good explanation tho !!!

  • @mihailomarcetic2516
    @mihailomarcetic2516 Před 2 lety

    great video !!

  • @sushilsuthar356
    @sushilsuthar356 Před 4 lety

    Now i understood after so many articles and videos.

  • @hosamhemaily4817
    @hosamhemaily4817 Před 3 lety

    really good

  • @abhi1779
    @abhi1779 Před 4 lety

    I have never found anyone who can explain better then Shiv Prasad Koirala Sir

  • @deependrajoshi199
    @deependrajoshi199 Před 4 měsíci

    I want to understand here that you created 2 worker threads: NewMethod() and NewMethod1() and there is one main thread means total 3 but here in the debug there are 3 worker threads and one main thread means total 4 threads so why there is one extra worker thread created for?

  • @ghanshamkashyup6235
    @ghanshamkashyup6235 Před 3 lety

    Very nice explaination ur video better than udmey videos

  • @vamsikumar_n
    @vamsikumar_n Před 4 lety

    sirji please make a video on Dependency inject in c#

  • @tomarshabh2199
    @tomarshabh2199 Před 2 lety

    superbbb!!!!!!!!

  • @Gauravkumar-jm4ve
    @Gauravkumar-jm4ve Před rokem

    Tx sir

  • @joselucargarrido7511
    @joselucargarrido7511 Před 3 lety

    Nice

  • @chimakurthiharitha513
    @chimakurthiharitha513 Před 2 lety

    Shiv sir - Can I use concurrency and parallelism both at once as I need performance as well as usage both at a time🤔

    • @unbekannt6111
      @unbekannt6111 Před 2 lety

      If u use parallelism u have the non blocking aspect included so.

  • @sachinbonde89
    @sachinbonde89 Před rokem

    👍👍

  • @izzyr9590
    @izzyr9590 Před 3 lety

    IT developers. This is such a interesting name.

  • @benyahiahassen4540
    @benyahiahassen4540 Před 4 lety

    the threads do not appear in my thread panel, does any one know why?

  • @edipocdf
    @edipocdf Před rokem

    Valeu!

    • @questpondvideos
      @questpondvideos  Před rokem

      @Edipo G Thank you for your contribution; it will encourage us to create more useful content.
      Happy learning....!

  • @programmadore9588
    @programmadore9588 Před 3 lety

    Why does it show no threads running for me? 11:05

  • @PI-Thoughts
    @PI-Thoughts Před 2 lety

    do not know, how many times i have watched

  • @wew6438
    @wew6438 Před 5 lety

    omg i can finally found an indian acent that i could understand

  • @HarshaVardhan-dg7ii
    @HarshaVardhan-dg7ii Před 3 lety

    Imagine juggling with computers!!

  • @solidwealthsecrets
    @solidwealthsecrets Před rokem

    not working

  • @AngryBerserk
    @AngryBerserk Před 3 lety

    It looks like you are confusing concurency with asynchronism

  • @user-ej3iw8lw3w
    @user-ej3iw8lw3w Před rokem

    as to his accent, of course it's indian