Why can singular threads create an issue?
How do thread pools work?
What are asynchronous calls?
Thread pool queues
How do the thread pool queues improve performance?
Dynamic & static thread pool queues
How can thread pool queues ensure load balance?
The downsides of using a single thread for clients’ requests, or a seperate thread for each request?
One thread: Takes too long
New threads: Overhead
How can a thread pool with a limited nr of worker threads be effective in handling requests?
Creating a thread pool in C# using a lambda expression function
public void Create()
{
ThreadPool.QueueUserWorkItem((state) =>
{
Console.WriteLine(“A thread pool has been
made”);
});
Disadvantages of thread pools
When to use thread pools?
When not to use thread pools?
What is asynchronous programming?
What is the non-blocking model?
Single-threaded sync code
Multiple-threaded synchronous code
Asynchronous model
What are some benefits of asynchronous model?
When should you use single-threaded async code?
Practical example of async
Multi-threaded async code
Async and thread pools?
Defining tasks