Based on the code in your comments, multi-threading is not going to help you in this case. Your code is not CPU-bound; it's network bound. Adding another thread will just add extra overhead for no benefit.
Normally in this situation, you would speed things up by making multiple network requests in parallel. Unfortunately, since the second network request relies on data from the response of the first request, you can't even do that. You have to wait for the first request to complete before you can make the second request.
The speed of your code is going to be limited by the speed of the two network requests. There's not much you can do about that, except perhaps using
async
/
await
combined with
RegisterAsyncTask
, to ensure that you're not blocking requests from other users while you're waiting for the responses.
Page.RegisterAsyncTask(PageAsyncTask) Method (System.Web.UI) | Microsoft Docs[
^]
Using Asynchronous Methods in ASP.NET 4.5 | Microsoft Docs[
^]