What is the difference between Threads and Tasks?
Вставка
- Опубліковано 13 чер 2023
- 1. Full .NET Interview Course (with PDF Book)
C# / ASP.NET Core / MVC / API - Top 500 Interview Questions
www.udemy.com/course/csharp-o...
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/interviewhappy
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.
Tasks divide the work across available processors but threads do not do this automatically. Threads give concurrency but actual parallelism is given by tasks. It depends we need concurrency or parallelism
Really good observation Rahul. That why we call learning never stops.
Task is NOT a simple wrapper around threads. Most common use for Tasks are asyncronous I/O operations
Great explanation, I’d say add a 3rd option/explanation of Socket to “complete” the information (though most will never go this low) 😊
keep going
Thank you so much to clear concept
You are most welcome. Happy to help @ adarshsingh8462
Explanation is nice. But why the cycle and motorcycle concept 😂
doing same thing but in different ways. You can goto a destination by bike,car,walk,aeroplane etc.
Wow
Don't give wrong information to techies.
Very nice
Thanks @maneeshdeepankar2984
❤
Nice
Thanks @arnab1188
Nice
Thanks