Re: Writing a bare bones Download manager
- From: "parser" <saleem.a.ansari@xxxxxxxxx>
- Date: 28 Nov 2006 05:30:20 -0800
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.
.
- References:
- Writing a bare bones Download manager
- From: parser
- Re: Writing a bare bones Download manager
- From: Phlip
- Re: Writing a bare bones Download manager
- From: parser
- Re: Writing a bare bones Download manager
- From: sjdevnull@xxxxxxxxx
- Re: Writing a bare bones Download manager
- From: parser
- Re: Writing a bare bones Download manager
- From: sjdevnull@xxxxxxxxx
- Writing a bare bones Download manager
- Prev by Date: Programmer mood
- Next by Date: Re: Shortest path via ...
- Previous by thread: Re: Writing a bare bones Download manager
- Next by thread: Re: Writing a bare bones Download manager
- Index(es):
Relevant Pages
|
Loading