Click here to Skip to main content
15,905,508 members
Home / Discussions / C#
   

C#

 
GeneralRe: Killing hidden processes Pin
teknolog1239-Apr-11 2:32
teknolog1239-Apr-11 2:32 
GeneralRe: Killing hidden processes Pin
David19879-Apr-11 2:36
David19879-Apr-11 2:36 
GeneralRe: Killing hidden processes Pin
teknolog1239-Apr-11 6:45
teknolog1239-Apr-11 6:45 
QuestionSocket Exception Pin
Paul Harsent6-Apr-11 5:27
Paul Harsent6-Apr-11 5:27 
AnswerRe: Socket Exception Pin
Pete O'Hanlon6-Apr-11 6:06
mvePete O'Hanlon6-Apr-11 6:06 
GeneralRe: Socket Exception Pin
Paul Harsent6-Apr-11 6:09
Paul Harsent6-Apr-11 6:09 
GeneralRe: Socket Exception Pin
Pete O'Hanlon6-Apr-11 6:21
mvePete O'Hanlon6-Apr-11 6:21 
GeneralRe: Socket Exception Pin
#realJSOP6-Apr-11 9:07
professional#realJSOP6-Apr-11 9:07 
GeneralRe: Socket Exception Pin
Pete O'Hanlon6-Apr-11 9:13
mvePete O'Hanlon6-Apr-11 9:13 
GeneralRe: Socket Exception Pin
ankitjoshi246-Apr-11 9:40
ankitjoshi246-Apr-11 9:40 
AnswerRe: Socket Exception Pin
Luc Pattyn6-Apr-11 6:57
sitebuilderLuc Pattyn6-Apr-11 6:57 
GeneralParallel.For Issue Pin
Bassam Abdul-Baki6-Apr-11 5:12
professionalBassam Abdul-Baki6-Apr-11 5:12 
GeneralRe: Parallel.For Issue Pin
David19876-Apr-11 5:19
David19876-Apr-11 5:19 
GeneralRe: Parallel.For Issue Pin
Bassam Abdul-Baki6-Apr-11 5:25
professionalBassam Abdul-Baki6-Apr-11 5:25 
AnswerRe: Parallel.For Issue Pin
Luc Pattyn6-Apr-11 5:25
sitebuilderLuc Pattyn6-Apr-11 5:25 
GeneralRe: Parallel.For Issue Pin
Bassam Abdul-Baki6-Apr-11 5:29
professionalBassam Abdul-Baki6-Apr-11 5:29 
GeneralRe: Parallel.For Issue Pin
David19876-Apr-11 5:31
David19876-Apr-11 5:31 
GeneralRe: Parallel.For Issue Pin
Luc Pattyn6-Apr-11 6:32
sitebuilderLuc Pattyn6-Apr-11 6:32 
GeneralRe: Parallel.For Issue Pin
BobJanova6-Apr-11 6:31
BobJanova6-Apr-11 6:31 
GeneralRe: Parallel.For Issue Pin
AspDotNetDev6-Apr-11 7:07
protectorAspDotNetDev6-Apr-11 7:07 
GeneralRe: Parallel.For Issue Pin
Bassam Abdul-Baki6-Apr-11 14:13
professionalBassam Abdul-Baki6-Apr-11 14:13 
GeneralRe: Parallel.For Issue Pin
Luc Pattyn6-Apr-11 5:24
sitebuilderLuc Pattyn6-Apr-11 5:24 
if your loop iterations have data dependencies (e.g. you are trying to calculate the overall sum in one accumulator), then parallellized code would require synchronization, which could throw away most if not all of your potential performance gains.

The normal way to efficiently calculate an overall sum would be to have explicit threads, each thread holding its own accumulator, summing the data entrusted on it; then in a sequential way adding all accumulators together.

As always, simple solutions only work well in simple situations...

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

GeneralRe: Parallel.For Issue Pin
Bassam Abdul-Baki6-Apr-11 5:27
professionalBassam Abdul-Baki6-Apr-11 5:27 
AnswerRe: Parallel.For Issue Pin
Luc Pattyn6-Apr-11 5:36
sitebuilderLuc Pattyn6-Apr-11 5:36 
GeneralRe: Parallel.For Issue Pin
Bassam Abdul-Baki6-Apr-11 5:40
professionalBassam Abdul-Baki6-Apr-11 5:40 

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.