Re: Threading question
- From: "John Rogers" <johnrogers2345@xxxxxxx>
- Date: Sun, 3 Feb 2008 07:54:11 -0600
Appreciate it Sergey,
My knowledge on threads is pretty limited. I guess I will try to figure out
how to have my
thread go through one item at a time in the listview and then do the
copying.
Thanks again.
John-
"Sergey Zyuzin" <forever.zet@xxxxxxxxx> wrote in message
news:d73f0882-8e5a-4b94-a73d-f94faf74a3b6@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I think multithreaded implementation in this case won't benefit much,
because bottleneck in this case is hard drive but not CPU, unless you
are copying from/to many physical drives.
I suspect in some cases it can be even slower.
Nonetheless, to implement multithreaded copy I would create a Queue
where I put
all items to be copied. Then I would create 3-4 threads, which will
run the same routine.
This routine will take an item from the Queue in loop and perform
corresponding copy operation.
.
- References:
- Threading question
- From: John Rogers
- Re: Threading question
- From: Sergey Zyuzin
- Threading question
- Prev by Date: Re: Function minimization and random numbers
- Next by Date: Re: basic console app without .net, is it possible in c#.
- Previous by thread: Re: Threading question
- Next by thread: RE: Threading question
- Index(es):
Relevant Pages
|
Loading