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

  Рет қаралды 119,980

Questpond

Questpond

Күн бұрын

Пікірлер: 95
@questpondvideos
@questpondvideos 3 жыл бұрын
30 Important C# Interview Questions : kzbin.info/www/bejne/eHzcn3h4hdacf68 Software Architecture Interview Questions : kzbin.info/www/bejne/d6W3mJaYgbSkg68 25+ OOPS Interview Questions : kzbin.info/www/bejne/q2qcqHSld893rLM 20+ SQL Server Interview Questions : kzbin.info/www/bejne/iXbHcnluorh-iZY 10+ Power BI Interview Questions : kzbin.info/www/bejne/eaDdlGyNg6eFqpY 20 MSBI Interview Questions : kzbin.info/www/bejne/hKjCpHt7gNOCi6c SQL Server Joins : kzbin.info/www/bejne/gYXZint7o9mppJo SQL Step by Step - kzbin.info/www/bejne/q3jPl4NvpJyeo7s Angular Step by Step Tutorial for Beginners : kzbin.info/www/bejne/Y2q5lIptgqd3qZo 25 Angular Interview Questions : kzbin.info/www/bejne/Y5vIoKx6f6mmia8 25 Important ASP.NET Interview Questions : kzbin.info/www/bejne/ponQfpejf7p2Zsk 35 Important JavaScript Interview Questions : kzbin.info/www/bejne/kJOXlYOfbKh0hLc 20 MySQL Interview Questions : kzbin.info/www/bejne/b5nJm3Zjd9WMaJI 5 MSBI Interview Questions : kzbin.info/www/bejne/a3abYmiXjaaqj7M 20 PHP Interview Questions : kzbin.info/www/bejne/Z5PTf4avo7qlopo
@bengalibabu2435
@bengalibabu2435 5 жыл бұрын
Sirji you are from a different planet. Awesome master piece.
@VitaminCode
@VitaminCode 7 күн бұрын
Kya kehna chahta hai bhai 😂
@SushrutKanetkar
@SushrutKanetkar 3 жыл бұрын
One of the best teachers I ever came across ! Thank you sir, you are amazing
@hocky-ham324-zg8zc
@hocky-ham324-zg8zc 4 жыл бұрын
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.
@rahulk2573
@rahulk2573 4 ай бұрын
I have a doubt that even if multiple threads are running on a same core through thread interleaving then it will concurrent programming and not parallel programming right? So is multi-threading not always parallel programming?
@hocky-ham324-zg8zc
@hocky-ham324-zg8zc 4 ай бұрын
​@@rahulk2573 yes, multi-threading is not always done in parallel. I believe if you have a multicore CPU, most OS' schedulers are able to correctly dispatch different threads to different cores. For CPUs with 1 core, they are still able to perform tasks concurrently via thread interleaving like you correctly pointed out.
@rubyc7771
@rubyc7771 6 ай бұрын
Thanks for teaching like we're dummies. I can't express how much I appreciate your teaching style.
@dorinpopa6962
@dorinpopa6962 3 жыл бұрын
The best explanation of those concepts I have found on KZbin! 10/10!
@aasurjya
@aasurjya 4 ай бұрын
Great One, helped me building parallel core app in unity.
@heezukaa8803
@heezukaa8803 2 ай бұрын
One of the best tutorial i have ever found thank you so much hope you will upload more updates video about c#.
@abidzahid2974
@abidzahid2974 Жыл бұрын
Explained very well now I must say I am theoretically clear on concurrency and parallism
@publicfare8939
@publicfare8939 3 жыл бұрын
the explanation is so detail and easy to understand, thanks for your hardwork
@antonyspiano2403
@antonyspiano2403 4 жыл бұрын
Great job, I searched more than 20 videos for sure , to get a confident view on this.. you did it . Great job!!! Thank you!
@rishabhmalhotra6474
@rishabhmalhotra6474 Жыл бұрын
what an amazing video! great work and very glad to be able to understand these concepts as I have always somewhat struggled with these
@RajuPatil-w2u
@RajuPatil-w2u Ай бұрын
Very well explained. Thank You Shiv
@questpondvideos
@questpondvideos Ай бұрын
Thank You :)
@tonybapuji5956
@tonybapuji5956 3 жыл бұрын
Excellent tutorial with fundamental points clearly and concisely explained. Thank you so much!
@danielvisan3405
@danielvisan3405 2 ай бұрын
Thank you! Very well explained!
@iam_ashishmishra
@iam_ashishmishra 5 жыл бұрын
Really Impressive... Thank you for making me clear about these concepts.
@deltaphilip8611
@deltaphilip8611 3 жыл бұрын
This has cleared up a lot of confusion for me.
@zeenatmalik2816
@zeenatmalik2816 4 жыл бұрын
This is the best lecture on these topics 👍
@imsraone
@imsraone Жыл бұрын
Last picture was just awesome and make really sense :)
@alshifamedicine
@alshifamedicine 5 жыл бұрын
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?
@gipbwok2008
@gipbwok2008 3 жыл бұрын
Good explanation. I think at 14:50 the word is "undeterministic".
@VIjayKumartheh2o
@VIjayKumartheh2o 4 жыл бұрын
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.
@ashutoshmishra2170
@ashutoshmishra2170 3 жыл бұрын
I am big fan of your teaching 💕
@johnnguyen1655
@johnnguyen1655 4 жыл бұрын
I love those explanations. Thanks for your hard work!
@vineetchaudhary7082
@vineetchaudhary7082 4 жыл бұрын
I am a big fan of you sir. What a knowledge you have sir. Thanks a lot for such tutorials.
@PankajKumar-tb5up
@PankajKumar-tb5up 5 жыл бұрын
Last images summarizes the whole lecture :)
@successquotes-ts3dw
@successquotes-ts3dw 10 ай бұрын
Your are really producing good content sir
@aktchungrabanio6467
@aktchungrabanio6467 3 жыл бұрын
Wonderful explanation. Just a small correction: Instead of determistic, it should be deterministic. Other than that, excellent content.
@TarunKomma
@TarunKomma 5 жыл бұрын
To the point with lucid explanation ... hats off sir ji
@ghanshamkashyup6235
@ghanshamkashyup6235 3 жыл бұрын
Very nice explaination ur video better than udmey videos
@JagadishMori
@JagadishMori 5 жыл бұрын
Very helpful and easily explained, thanks again
@shashidev7941
@shashidev7941 4 жыл бұрын
Thank you for this wonderful Tutorial.
@scubagrant6045
@scubagrant6045 4 жыл бұрын
Great job. Very clear.
@RameezTV
@RameezTV 4 жыл бұрын
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?
@vrajeshbadgujar
@vrajeshbadgujar 6 ай бұрын
You are a Gem. Thanks!
@epuriraghavendra3847
@epuriraghavendra3847 5 жыл бұрын
Such a great explanation. Thank you sir.
@abhi1779
@abhi1779 4 жыл бұрын
I have never found anyone who can explain better then Shiv Prasad Koirala Sir
@vaishalidube4312
@vaishalidube4312 3 жыл бұрын
Beautiful explanation!!
@Dharmeshpatel-to2nd
@Dharmeshpatel-to2nd 4 жыл бұрын
Very nicely explained :)
@mferreira1231
@mferreira1231 4 жыл бұрын
Superb explanation!
@slobodantajisic2762
@slobodantajisic2762 2 жыл бұрын
Since one core can have multiple threads, is performing different tasks on different threads of the same core parallelism?
@saikiranbhr
@saikiranbhr 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
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 2 жыл бұрын
@@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.
@TheRetrospective
@TheRetrospective 4 жыл бұрын
Good video! One quick tip: 'deterministic' is correct spelling and not 'determistic'.
@saikiranankam7617
@saikiranankam7617 4 жыл бұрын
Super impressive. Excellent 🙏
@Mr-Doctor-King
@Mr-Doctor-King 5 жыл бұрын
You are the real MVP.
@321zipzapzoom
@321zipzapzoom 4 жыл бұрын
Nice explanation Sir
@adamakkouche3297
@adamakkouche3297 3 жыл бұрын
So as a consequence at the end of the computation, running our processes in series or concurrently is in terms of total time speed equivalent ? This is just a matter of perception.
@rr9336093122
@rr9336093122 5 жыл бұрын
was really clear and concise....thanks
@shashankpandey1019
@shashankpandey1019 5 жыл бұрын
You are the Real Rocks Sir 🙏🙏🙏
@petrcipera8999
@petrcipera8999 4 жыл бұрын
Nicely explained!
@hornybastard
@hornybastard 3 жыл бұрын
thanks. very useful
@deependrajoshi199
@deependrajoshi199 9 ай бұрын
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?
@programmadore9588
@programmadore9588 4 жыл бұрын
very good explanation tho !!!
@mihailomarcetic2516
@mihailomarcetic2516 2 жыл бұрын
great video !!
@adelhishem1
@adelhishem1 5 жыл бұрын
Thank you for the video, really nice work.
@tomarshabh2199
@tomarshabh2199 3 жыл бұрын
superbbb!!!!!!!!
@JourneywithNarasimha
@JourneywithNarasimha 5 жыл бұрын
Thank you so much..... Thanks alot for sharing such a wonderful stuff
@chimakurthiharitha513
@chimakurthiharitha513 3 жыл бұрын
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 2 жыл бұрын
If u use parallelism u have the non blocking aspect included so.
@nithinchandran7959
@nithinchandran7959 5 жыл бұрын
You just cracked something i was worried about for many days..when are u going to release the second part?
@questpondvideos
@questpondvideos 5 жыл бұрын
Its here kzbin.info/www/bejne/fWTXq2yordmmbqc
@vamsikumar_n
@vamsikumar_n 5 жыл бұрын
sirji please make a video on Dependency inject in c#
@sushilsuthar356
@sushilsuthar356 5 жыл бұрын
Now i understood after so many articles and videos.
@hosamhemaily4817
@hosamhemaily4817 3 жыл бұрын
really good
@uribe2211
@uribe2211 5 жыл бұрын
Great!! thanks for sharing
@danyaathiyaguthiyagu8175
@danyaathiyaguthiyagu8175 5 жыл бұрын
Async have .configuration(false or true) in their calling level . That is helpful for performance ?
@izzyr9590
@izzyr9590 3 жыл бұрын
IT developers. This is such a interesting name.
@tnduc91
@tnduc91 5 жыл бұрын
great work mate, thank you!
@ananyafrederick2524
@ananyafrederick2524 4 жыл бұрын
Beautiful!!!!!!
@Gauravkumar-jm4ve
@Gauravkumar-jm4ve 2 жыл бұрын
Tx sir
@joselucargarrido7511
@joselucargarrido7511 4 жыл бұрын
Nice
@kumargaurav8619
@kumargaurav8619 5 жыл бұрын
Nailed it!!!
@programmadore9588
@programmadore9588 4 жыл бұрын
Why does it show no threads running for me? 11:05
@PI-Thoughts
@PI-Thoughts 3 жыл бұрын
do not know, how many times i have watched
@sachinbonde89
@sachinbonde89 2 жыл бұрын
👍👍
@benyahiahassen4540
@benyahiahassen4540 5 жыл бұрын
the threads do not appear in my thread panel, does any one know why?
@edipocdf
@edipocdf 2 жыл бұрын
Valeu!
@questpondvideos
@questpondvideos Жыл бұрын
@Edipo G Thank you for your contribution; it will encourage us to create more useful content. Happy learning....!
@wew6438
@wew6438 5 жыл бұрын
omg i can finally found an indian acent that i could understand
@リンゴ酢-b8g
@リンゴ酢-b8g 2 жыл бұрын
as to his accent, of course it's indian
@HarshaVardhan-dg7ii
@HarshaVardhan-dg7ii 4 жыл бұрын
Imagine juggling with computers!!
@AngryBerserk
@AngryBerserk 3 жыл бұрын
It looks like you are confusing concurency with asynchronism
@questpondvideos
@questpondvideos 3 жыл бұрын
Do put more explanation.
@HateExisting-d3o
@HateExisting-d3o Жыл бұрын
not working
@dibbyo456
@dibbyo456 4 жыл бұрын
Excellent explanation. Thank you 🙏.
@navneethegde5999
@navneethegde5999 2 жыл бұрын
Nice explanation!
Who's spending her birthday with Harley Quinn on halloween?#Harley Quinn #joker
01:00
Harley Quinn with the Joker
Рет қаралды 26 МЛН
КОГДА К БАТЕ ПРИШЕЛ ДРУГ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 8 МЛН
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 46 МЛН
What is TPL ( Task Parallel Library) and how it differs from threads (c# interview questions) ?
13:29
Concurrency Vs Parallelism!
4:13
ByteByteGo
Рет қаралды 91 М.
SOLID  Principal - Interview Questions and Answers
24:04
Interview Happy
Рет қаралды 120 М.
Deep Learning Interview Prep Course
3:59:50
freeCodeCamp.org
Рет қаралды 469 М.