How do I use the thread pool?



How do I use the thread pool?..

Answer / Taruna Singh

To use the thread pool in .NET, you can utilize the System.Threading.Tasks.ThreadPool class. You can submit work items to the thread pool using methods like ThreadPool.QueueUserWorkItem(). It's important to note that using the thread pool is useful for performing short-lived tasks as it helps optimize system resources.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

Explain the use of ‘this’ keyword in Java?

1 Answers  


why you wouldn't want to write into it even if you could

1 Answers  


Explain cas (code access security)?

1 Answers  


What is Assembly?

1 Answers   DELL, Wipro,


ctype(123.34,integer) - should it throw an error? Why or why not?

1 Answers   Wipro,


What are the new features in .net core?

1 Answers  


What should you do to store an object in a viewstate?

1 Answers  


Give An example of a ctype and directcast.

2 Answers   Wipro,


Explain the .NET architecture.

9 Answers   HCL, Idhasoft, Scandent, TCS, TechnoLinks,


What is the managed and unmanaged code in .net?

3 Answers   Deltech, Dhanush Infotech,


What are the properties of ADO.NET?

1 Answers   Amdocs,


Can you configure a .NET Remoting object via XML file?

1 Answers  


Categories