No video

What is the difference synchronous and asynchronous programming?

  Рет қаралды 47,551

Interview Happy

Interview Happy

Күн бұрын

1. Full .NET Interview Course (with PDF Book)
C# / ASP.NET Core / MVC / API - Top 500 Interview Questions
www.udemy.com/...
Don't worry if course not helping you, Udemy has 30 days Free Refund Policy.
2. Quick Revision Book (PDF format)
Top 500 .NET Interview Questions - OOPS/ C#/ ASP.Net/ MVC/ SQL /.Net Core /Web API
imojo.in/inter...
50% Discount Applied on above link.
Don't worry if book not helping you, I will return 100% of your money with in 7 days of purchase. Just mail me at anuragrawat123@gmail.com.
My best wishes are with you.

Пікірлер: 19
@shobhamahadev118
@shobhamahadev118 5 ай бұрын
Async programs runs concurrently using only one main thread but if you use await it will create one more thread internally by TPL which is called callback thread to resume from that place. Summary: asynchronous programming doesn't use multi threads. Multi threading programs executes in parallel and async programs runs concurrently.
@roku_on_it
@roku_on_it Жыл бұрын
Threads don’t run parallel unless they run in different CPUs, otherwise they run concurrently.
@undergraduate6050
@undergraduate6050 Жыл бұрын
Concurrent means at the same time and parallel is what you said.
@youraccountissuspended
@youraccountissuspended 11 ай бұрын
what is the difference between async and multi thread?
@interviewhappy
@interviewhappy 10 ай бұрын
I already explained in my other videos
@user-gl1td1hh7l
@user-gl1td1hh7l 3 ай бұрын
That’s more multithreading programming rather than asynchronous. Asynchronous programming is meant to use as less threads as possible without blocking the calling method. Task.Run() schedules and runs task in another thread from thread pool
@davidemmanuel3001
@davidemmanuel3001 Жыл бұрын
What if i need the result of the first method as input for the second method?
@SSSALLJOBSPORTAL
@SSSALLJOBSPORTAL Жыл бұрын
Asynchronous will help when independent tasks are there.
@koustavmandal1750
@koustavmandal1750 6 ай бұрын
What you explain is multi threading . Its is asynchronous programming when all tasks wait and main thread doesn't exist till task finishes . In your example console may only print 10 and main thread might exit .
@koustavmandal1750
@koustavmandal1750 6 ай бұрын
This is not ayschronous problem ..its just your running thing in different thread
@anoopkumarg9981
@anoopkumarg9981 10 ай бұрын
How do you handle if it throws Thread Being Abort, If we have more threads get created?
@homebrew07
@homebrew07 Жыл бұрын
Since Method2() and Method3() would be ran at the same time, would that cause a race condition? Is there a situation where 30 could appear before 20 or will Method3() always run slightly after Method2()?
@interviewhappy
@interviewhappy Жыл бұрын
I don't think so. First method2() will start and immediately method3() will start. So method2() have first start advantage. Now if method2() have complex logic then it may take time.
@shirishshinde8920
@shirishshinde8920 Жыл бұрын
How 10 is at last even though it's thread started to execute first?
@pauldickman4379
@pauldickman4379 Жыл бұрын
Method1() has Thread.Sleep(500);
@crackit5747
@crackit5747 Жыл бұрын
Thnk u sir
@interviewhappy
@interviewhappy Жыл бұрын
Most welcome @crackit5747
@ivanvincent7534
@ivanvincent7534 8 ай бұрын
This is not asynchronous. There is no async or await keywords. You are misinforming people.
@waiting_for_
@waiting_for_ Жыл бұрын
This is untrue
"Stop Using Async Await in .NET to Save Threads" | Code Cop #018
14:05
What are ASYNC and AWAIT in C#? Asynchronous Programming Tutorial
18:34
Люблю детей 💕💕💕🥰 #aminkavitaminka #aminokka #miminka #дети
00:24
Аминка Витаминка
Рет қаралды 470 М.
Bony Just Wants To Take A Shower #animation
00:10
GREEN MAX
Рет қаралды 7 МЛН
Or is Harriet Quinn good? #cosplay#joker #Harriet Quinn
00:20
佐助与鸣人
Рет қаралды 8 МЛН
Explain Generics in C#? When and why to use them in real applications?
5:57
Multithreading vs Asynchronous Programming
11:00
Nutshell
Рет қаралды 14 М.
Top 30  .Net Core Interview Questions in 30 mins - .NET C#
37:11
Interview Happy
Рет қаралды 321 М.
The Async Await Episode I Promised
12:04
Fireship
Рет қаралды 1,1 МЛН
C# Async Await Mistakes | Part 1
10:19
Amichai Mantinband
Рет қаралды 33 М.
That's NOT How Async And Await Works in .NET!
12:25
Codewrinkles
Рет қаралды 21 М.
Async JavaScript & Callback Functions -- Tutorial for Beginners
24:21
What is Run(), Use() and Map() method?
5:31
Interview Happy
Рет қаралды 28 М.