Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7500691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:16:06+00:00 2026-05-29T20:16:06+00:00

I noticed that code after return from ExecuteRegisteredAsyncTasks call is executed in same thread

  • 0

I noticed that code after return from ExecuteRegisteredAsyncTasks call is executed in same thread as code before this call. So I understand that manually calling ExecuteRegisteredAsyncTasks doesn’t free the request-processing thread to service other requests and this method should be only automatically called to get scaling benefit?

On msdn is example code but help doesn’t answer this question.

UPDATE

In my case, in PageAsyncTasks I am asynchronously calling web services (using Begin* and End*) so I am not using thread pool.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T20:16:08+00:00Added an answer on May 29, 2026 at 8:16 pm

    In the MSDN example of the RegisterAsyncTask method, they simply declare an AsyncTaskDelegate which is invoked with Begin and End methods. When you asynchronously invoke a delegate it uses a thread from the thread pool so you are basically not getting any improvement in this case. The only speed improvement might be if you were executing multiple operations in parallel that would otherwise would be executed synchronously.

    If you want to get a real performance boost you need to use IOCP (I/O Completion Ports). They are adapted to I/O intensive tasks such as network calls (database calls, web service calls, …). Not suitable for CPU intensive tasks. So let’s suppose that you want to perform an HTTP call using WebClient.DownloadStringAsync method. This method doesn’t use a thread from the thread pool. It registers an IOCP with the kernel and fires the HTTP request. When it returns control to the caller no thread is being consumed and this during the whole HTTP request duration. Once the request finishes the IOCP is signaled and a thread is drawn from the thread pool to process the results.

    Take a look at the asynchronous pages in ASP.NET article. IOCP are explained better there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Silverlight I noticed that the code-behind Page class inherits from UserControl: public partial
I am using SampleGrabber in DirectShow on windows 7, I noticed that the Code
I've been using Javascript's Date for a project, but noticed today that my code
We've noticed that IE7 has an odd behavor with code blocks posted on Stack
I have noticed that my geocoder is inconsistent in the code shown below because
I looked through some code and noticed that the convention was to turn pointer
I was looking at the Java code for LinkedList and noticed that it made
I just started using Qt and noticed that in each example code folder there
I've been working with somebody else's code and noticed that on all uses of
Hey! I was looking at this code at http://www.gnu.org/software/m68hc11/examples/primes_8c-source.html I noticed that in some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.