in reply to Re^2: Fork vs pThreads
in thread Fork vs pThreads
And also the time it took from one block of 50 to other block of 50 and it was the same time as the longer one.
Of course. How could it be otherwise?
If you draw 10 parallel lines of different lengths:
--------------- ------ ---------------- ---- - ----------- -------- ------ -------------- -----
Is there any way to make the overall width less than the longest line?
Same thing.
As an aside, but entirely relevant; running 50 tasks concurrently on 4 cpus will take longer than running those same 50 tasks; but only 4 at any given time.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Fork vs pThreads
by ThelmaJay (Novice) on Oct 21, 2013 at 13:46 UTC | |
by BrowserUk (Patriarch) on Oct 21, 2013 at 15:15 UTC | |
by ThelmaJay (Novice) on Oct 21, 2013 at 15:25 UTC | |
by choroba (Cardinal) on Oct 21, 2013 at 13:47 UTC | |
by ThelmaJay (Novice) on Oct 21, 2013 at 13:56 UTC |