Re: Writing a bare bones Download manager



thanx for your suggestions.

sjdevnull@xxxxxxxxx wrote:
parser wrote:
sjdevnull@xxxxxxxxx wrote:
parser wrote:
What i mean to say is that "is there alternative for GNU/Linux"?
or can i tune tune wget so that it can download a file streaming man
parts if it all at once ( using multiple threads )?

Why would you use threads for that? There's no good reason to abandon

i mean to download using multiple connections for each section (say 4
scetions/streams) of the same file. this genereally increases the
download speed if you are behined a firewall and bandwidth per
connection is low.

I doubt it unless you're connecting to multiple servers, but if you are
there's no reason not to use processes.

It is more likely that you'd want multiprocessing if you're connecting
to multiple remote servers, but using processes instead of threads is
likely to be more robust and easier to maintain. There's no reason to

multiple threads are more efficient as compared to multiple precesses
and synchronisation too is easier i suppose. any comments?


I just gave them. Go read my message again. The only semantic
difference between threads and processes is that threads lack memory
protection. You should only use them when you do not want memory
protection between your execution contexts. Certainly synchronization
is less of a problem between multiple processes, as it's easier to know
exactly what is being shared and it's obvious when you're accessing a
shared resource.

Efficiency concerns are best measured by benchmarking, but if you're
waiting for the network then the difference between threads and procs
is almost certainly irrelevant.

Picking threads for this kind of problem is a pretty sure sign of a
junior programmer who's never learned how to do maintainable concurrent
computing nor how to profile and optimize effectively.

.



Relevant Pages

  • Re: List of Hotfixes to fix DX10/SLI/GPU/Memory in Gaming
    ... 'KB933590 - Fixes issues when running multiple monitors when playing ... Request Download: ... Download the AMD 64 Multiple Core Optimizer (Enhances performance while ... nHancer - The Advanced Control Panel and Profile Editor for ...
    (microsoft.public.windows.vista.games)
  • WinFlash Educator 10.10.07
    ... Educator offers powerful multimedia support while retaining its ... Choose from standard, fill-in or multiple ... foreign language study, speeding both creation and study phases. ... dictionaries are available for free download. ...
    (comp.software.shareware.announce)
  • Re: Which folders are shortcuts?
    ... "For general shortcuts, I would agree with what you say, but the OP is ... >> for what appears to be multiple entries.. ... >> computer illiterates download stuff and don't know where its gone, ... >> to be in multiple folders, ...
    (microsoft.public.windowsxp.basics)
  • Re: Is it better to use threads or fork in the following case
    ... download the data and then have another to actually process the data. ... That said, if you are thinking from a responsiveness perspective, I would definitely say threading. ... If you ask from a performance perspective I would need to know what OS you are running and if you have multiple CPU's and if you are actually planning on spawning that sub-process on a a different CPU as the parent process. ...
    (comp.lang.python)
  • Re: Writing a bare bones Download manager
    ... or can i tune tune wget so that it can download a file streaming man ... parts if it all at once (using multiple threads)? ... I'm not convinced that multiple connections to a ...
    (comp.programming)

Loading