Asynchronous processing in SQL Server vs. .NET Asynchronous processing

后端 未结 5 1971
情深已故
情深已故 2021-01-02 23:25

What\'s is the advantage of using Asynchronous processing in SQL Server over .NET Asynchronous processing? Aren\'t they the same? I have a hard time to understand what is th

5条回答
  •  囚心锁ツ
    2021-01-02 23:58

    From this article SQL Server 2008 Books Online (October 2009) - Performing Asynchronous Operations, I quote:

    Asynchronous processing enables methods to return immediately without blocking on the calling thread. This allows much of the power and flexibility of multithreading, without requiring the developer to explicitly create threads or handle synchronization.

    If you have explicitly created those threads and handled the synchronization, perhaps you probably will not find much difference.

提交回复
热议问题