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.

КОМЕНТАРІ • 18

  • @RahulSharma-ps1rf
    @RahulSharma-ps1rf Рік тому +23

    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

    • @interviewhappy
      @interviewhappy  Рік тому +5

      Really good observation Rahul. That why we call learning never stops.

  • @junior.santana
    @junior.santana 4 місяці тому +2

    Task is NOT a simple wrapper around threads. Most common use for Tasks are asyncronous I/O operations

  • @braydentoews7907
    @braydentoews7907 6 місяців тому +1

    Great explanation, I’d say add a 3rd option/explanation of Socket to “complete” the information (though most will never go this low) 😊

  • @ermahesh2009
    @ermahesh2009 Рік тому

    keep going

  • @adarshsingh8462
    @adarshsingh8462 Рік тому +1

    Thank you so much to clear concept

    • @interviewhappy
      @interviewhappy  Рік тому

      You are most welcome. Happy to help @ adarshsingh8462

  • @thameemansari6644
    @thameemansari6644 11 місяців тому +2

    Explanation is nice. But why the cycle and motorcycle concept 😂

    • @swaroopdhungana3536
      @swaroopdhungana3536 10 місяців тому

      doing same thing but in different ways. You can goto a destination by bike,car,walk,aeroplane etc.

  • @davidemmanuel3001
    @davidemmanuel3001 Рік тому +1

    Wow

  • @bijaydixit9831
    @bijaydixit9831 11 місяців тому +3

    Don't give wrong information to techies.

  • @maneeshdeepankar2984
    @maneeshdeepankar2984 Рік тому

    Very nice

  • @Aman-x5g
    @Aman-x5g 9 місяців тому

  • @arnab1188
    @arnab1188 Рік тому

    Nice

  • @samuelk5847
    @samuelk5847 Місяць тому

    Nice