So one of my apps downloads webpages from the internet. Presently i am using multiple(5) threads to speed up the downloading of webpages
for (int i = 0; i < th; i++)
{
Thread thread = new Thread(start);
thread.Start()
}
and in the start
function i am downloading webpages by HtttpWebRequest
and WebResponse
Combination. Is there any way i can speed up the process.
I am thinking of using Tasks
instead of thread. Will it cause any meaningful increase in speed or even a decrease in the resource usage of my PC.
Would be really thankful on some guidance here.