Download accelarator
-
Hello, I am trying to build a download accelarator (a program which downloads a file through several connections to increase the speed). I have created four threads. Each thread downloads the file from diffrent offset and finallly I join al this parts. The problem is that when I use one thread( without changing the thread's code) it much faster. It like the additional threads are slowing one another. In each thread I initialize the connection (CInternetSession->CHttpSession) and later in the thread I have put a loop which downloads the files. The initialization part is in a critical section. Can anyone tell whats wrong. Did anyone encountered similar problem? Sincerely yours Y.R.
-
Hello, I am trying to build a download accelarator (a program which downloads a file through several connections to increase the speed). I have created four threads. Each thread downloads the file from diffrent offset and finallly I join al this parts. The problem is that when I use one thread( without changing the thread's code) it much faster. It like the additional threads are slowing one another. In each thread I initialize the connection (CInternetSession->CHttpSession) and later in the thread I have put a loop which downloads the files. The initialization part is in a critical section. Can anyone tell whats wrong. Did anyone encountered similar problem? Sincerely yours Y.R.
Y_R wrote: It like the additional threads are slowing one another. how many CPUs does your computer have ? ( for that matter, how many internet connections does it have ? ) Cleek | Image Toolkits | Thumbnail maker
-
Y_R wrote: It like the additional threads are slowing one another. how many CPUs does your computer have ? ( for that matter, how many internet connections does it have ? ) Cleek | Image Toolkits | Thumbnail maker
I have one cpu and one internet connection (750 k). But it should not matter because when one is downloading file from a server that is slow multiple http connections to this server will raise the overall speed like many existing download accelators(e.g. Get Right, DAP, etc..) I think the problem is in my multithreading part. Sincerely yours Y.R.