Is there any performance advantage in calling BeginGetResponse vs.
calling GetResponse in my own thread pool? The advantage of my own pool
is that I can control the queue of requests.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
When you call GetResponse, even if you call it on a background ThreadPool thread, THAT thread will still be blocked, and won’t be able to go and do other work. That means context switching etc. If however you use the BeginGetResponse, then it offloads the work to the network card, however and most importantly, the calling thread is now free to go about and do some other work. When the network card is done, it’ll notify your application, at which point the callback will get called.