Explain the difference between task and thread in .net?



Explain the difference between task and thread in .net?..

Answer / Usha Singh

In .NET, a Thread represents a single sequence of execution within an application, while a Task represents a handle to a discrete unit of work. Tasks help simplify asynchronous programming by encapsulating the underlying threads, eliminating the need for developers to manually manage thread pools and synchronization primitives.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

can any one tel me the complete Testing Procedure of any one simple PROJECT i mean either web/windows based application?

1 Answers  


What is the use of immutability?

1 Answers  


What are the new 2.0 features useful for?

1 Answers  


How can you automatically generate interface for the remotable object in .NET with Microsoft tools?

1 Answers  


How Garbage Collector (GC) Works?

1 Answers  


Explain how to rename a table using sql queries?

1 Answers  


What is JIT and how is works?

3 Answers  


what is machine key error in .NET how can we solve it?

1 Answers  


What is .net assembly?

1 Answers  


what is the default security setting in .net?

1 Answers  


How .NET is able to support multiple languages?

5 Answers  


What is the intermediate language between asp and asp.net1.0?

1 Answers  


Categories