Click here to Skip to main content
15,923,087 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need to write a file to a server farm that is locked down by a ProcessID - this can't be THAT hard Pin
Alaric_4-May-10 7:42
professionalAlaric_4-May-10 7:42 
AnswerRe: Need to write a file to a server farm that is locked down by a ProcessID - this can't be THAT hard Pin
Alaric_4-May-10 6:59
professionalAlaric_4-May-10 6:59 
Questioni wait so much because of loops Pin
karayel_kara3-May-10 3:30
karayel_kara3-May-10 3:30 
AnswerRe: i wait so much because of loops Pin
Luc Pattyn3-May-10 3:49
sitebuilderLuc Pattyn3-May-10 3:49 
AnswerRe: i wait so much because of loops Pin
Michel Godfroid3-May-10 4:04
Michel Godfroid3-May-10 4:04 
GeneralRe: i wait so much because of loops Pin
Luc Pattyn3-May-10 4:09
sitebuilderLuc Pattyn3-May-10 4:09 
AnswerRe: i wait so much because of loops [modified] Pin
William Winner3-May-10 8:15
William Winner3-May-10 8:15 
AnswerRe: i wait so much because of loops Pin
Pete O'Hanlon3-May-10 8:24
mvePete O'Hanlon3-May-10 8:24 
GeneralRe: i wait so much because of loops Pin
harold aptroot3-May-10 8:43
harold aptroot3-May-10 8:43 
GeneralRe: i wait so much because of loops Pin
Pete O'Hanlon3-May-10 8:56
mvePete O'Hanlon3-May-10 8:56 
GeneralRe: i wait so much because of loops [modified] Pin
Luc Pattyn3-May-10 9:28
sitebuilderLuc Pattyn3-May-10 9:28 
GeneralRe: i wait so much because of loops Pin
harold aptroot3-May-10 10:14
harold aptroot3-May-10 10:14 
GeneralRe: i wait so much because of loops Pin
Luc Pattyn3-May-10 10:16
sitebuilderLuc Pattyn3-May-10 10:16 
GeneralRe: i wait so much because of loops Pin
harold aptroot3-May-10 10:31
harold aptroot3-May-10 10:31 
GeneralRe: i wait so much because of loops Pin
Luc Pattyn3-May-10 10:36
sitebuilderLuc Pattyn3-May-10 10:36 
GeneralRe: i wait so much because of loops Pin
harold aptroot3-May-10 10:42
harold aptroot3-May-10 10:42 
GeneralRe: i wait so much because of loops Pin
Luc Pattyn3-May-10 10:56
sitebuilderLuc Pattyn3-May-10 10:56 
AnswerRe: i wait so much because of loops Pin
Pete O'Hanlon3-May-10 10:47
mvePete O'Hanlon3-May-10 10:47 
GeneralRe: i wait so much because of loops Pin
Luc Pattyn3-May-10 11:05
sitebuilderLuc Pattyn3-May-10 11:05 
GeneralRe: i wait so much because of loops Pin
Pete O'Hanlon3-May-10 11:16
mvePete O'Hanlon3-May-10 11:16 
GeneralRe: i wait so much because of loops Pin
Luc Pattyn3-May-10 11:26
sitebuilderLuc Pattyn3-May-10 11:26 
GeneralRe: i wait so much because of loops Pin
Pete O'Hanlon3-May-10 11:23
mvePete O'Hanlon3-May-10 11:23 
GeneralRe: i wait so much because of loops Pin
Luc Pattyn3-May-10 11:27
sitebuilderLuc Pattyn3-May-10 11:27 
GeneralRe: i wait so much because of loops Pin
karayel_kara4-May-10 3:52
karayel_kara4-May-10 3:52 
GeneralRe: i wait so much because of loops Pin
Luc Pattyn4-May-10 4:18
sitebuilderLuc Pattyn4-May-10 4:18 
karayel_kara wrote:
my code isn't run


is not informative. does it compile? if not, what is the first error? does it run? if not, what is the first exception, with all the details? and at what line is it pointing?

anyway, your code looks all wrong. You now have three arrays. Why? You don't initialize the arrays. I see six for loops, you only need three. And the way I understand the algorithm you can not possibly run the outer loop in parallel (that was the essence of my comment to Pete too).

And please, please, please, please, please, please, show code in PRE tags, not in CODE tags.

Final remark: when all you do to the algorithm is run it in parallel, the best you can hope for is to get it N times faster, with N the number of cores, say 4. That is something, but not much. And there are no guarantees. My first experiment did run 5 times slower, because it trashed the caches all the time! (and I'm afraid that will be true for your app too).

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

Prolific encyclopedia fixture proof-reader browser patron addict?
We all depend on the beast below.


General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.