asynchronous - Which is the purpose of async methods? (.NET) -


In ASP.NET, we use async methods because there are limited slots in the thread pool, and using an async method You have no threads at the method level, whereas the method is outbound, a server can handle at the same interval, increase the number of requests.

I think the threshold limit is much higher in other types of applications (i.e. Windows Forms). In such cases, when both versions (sinks and async) occur, what is the purpose of ASC systems?

You can increase the worker thread pool in ASP.NET configuration and I can add multi-core boxes and IIS 6 But got a little help to help. With IIS 7 I have done very little, it seems that it seems to manage tweak without better sources.

The more direct question of why to use both ... you can assync a unit of work so that you can start from one pool to another unit of work without waiting for another thread. To complete the app which allows you to equalize more work at one time.

All your ASPX requests are being executed in the worker thread anyway, but if you can execute some parts of it in the async division of your request and can return the thread in your request Instead of executing everything at once, back in the pool.

It is difficult and difficult to master so beware :)

A section like "unlimited" thread pool, outside the ASP, windows is not. When you can spin more threads than Box / OS, you will start changing the context often so that you will defeat the purpose of threading. I will read this topic further as it is a very big and advanced topic.


Comments