Processing Threads in ASP.NET Async Await Operations

For continuous operation, if the asp.net stream is freed before other server requests. On which thread will the long-running operation be performed and how will it receive the asp.net stream after its completion.

+4
source share
2 answers

As I describe in my blog, lengthy I / O operations do not require a stream at all . Rather, they use naturally-asynchronous I / O, which does not require a stream.

Device drivers typically use DMA, and this allows the device to directly read / write from the systemโ€™s main RAM..NET complements this approach with IOCP (I / O completion port), which is part of the thread pool, allowing one thread (or very few threads) single-domain waiting on a huge number of input-output operations.

, , , await. - - , IOCP, , ( ..), ASP.NET . - , .

+6

, .

, , .

( Async, ). , Async.

.

, ( , ) .

, , ( ). IO , .

+1

All Articles