in reply to Re: Taking advantage of dual processors
in thread Taking advantage of dual processors [tag://parallel,cygwin,multi-core,fork,i/o]
I'm confused why you think it wouldn't?
Done serially with '.'s representing time taken:
v---------------------------------| read........munge....insert........
versus overlapping the insert and the read in parallel:
v-----------------------| read........munge.....QI. v-----------------------| DQ.insert........Wait....
Even on a single cpu system, and with the DB running on the same box, the insert can go ahead whilst the disk head locates the next chunk of data.
It will depend upon the relative expense of the overlapped operations, but on a multi-cpu system the elapsed time should be reduced?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Taking advantage of dual processors
by chromatic (Archbishop) on Nov 19, 2007 at 23:13 UTC | |
by BrowserUk (Patriarch) on Nov 20, 2007 at 02:38 UTC |