Click here to Skip to main content
15,881,882 members

Survey Results

Parallelising your code. Do you do it?   [Edit]

Survey period: 5 Jul 2010 to 12 Jul 2010

Our CPUs aren't getting as fast as fast as they used to, and we're now well and truly in a multi-core world. What do you do to take advantage of this? (Suggested by El Corazon)

OptionVotes% 
I specifically write code that runs in parallel22935.95
I use a language and compiler that supports parallisation automatically ( eg Intel compilers)558.63
I use libraries (eg PLINQ) that provide parallisation support8613.50
I use a framework or runtime (eg Parallel Extensions for .NET) that provide parallisation support15724.65
I let my operating system do what it can33953.22
I let my hardware do what it can18529.04
Not even my hardware can help me.497.69
Respondents were allowed to choose more than one answer; totals may not add up to 100%



 
GeneralRe: Only Specific Parts of code and only if required. Pin
peterchen4-Jul-10 22:58
peterchen4-Jul-10 22:58 
GeneralRe: Only Specific Parts of code and only if required. [modified] Pin
GPUToaster™5-Jul-10 0:31
GPUToaster™5-Jul-10 0:31 
GeneralRe: Only Specific Parts of code and only if required. Pin
El Corazon6-Jul-10 5:54
El Corazon6-Jul-10 5:54 
Generalparellelism myth PinPopular
ed welch4-Jul-10 22:14
ed welch4-Jul-10 22:14 
GeneralRe: parellelism myth Pin
peterchen4-Jul-10 22:50
peterchen4-Jul-10 22:50 
GeneralRe: parellelism myth Pin
ed welch5-Jul-10 1:05
ed welch5-Jul-10 1:05 
GeneralRe: parellelism myth Pin
Festering5-Jul-10 13:29
Festering5-Jul-10 13:29 
GeneralRe: parellelism myth Pin
El Corazon6-Jul-10 5:15
El Corazon6-Jul-10 5:15 
ed welch wrote:
I don't know if people realise this, but only certain tasks are suitable for parellelism


Perhaps, perhaps.... Obviously you are correct, and at the same time some programmers can write things that always prove you are correct, no matter what they write. I have one programmer here who places all variables, including STL iterators in the class private variables, and accessing through an Instance pointer he always has access to the root thread from multiple threads and thus always has to mutex because he is always sharing data, no routine is re-entrant, no routine can thread without synchronization.

Some things can be rephrased, some algorithms can be restructured so that multiple operations can occur, large loops that operate on a large structure (thus sharing data), but operate on different areas of memory for every increment of the counter can be done in parallel because no two areas operate on the same area of memory. But other methods such as interleaving allow even sharing areas to operate simultaneously. Thus, even in shared data systems, when you learn the techniques, you can thread without synchronization blocking. Big Grin | :-D
_________________________
John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others."

Shhhhh.... I am not really here. I am a figment of your imagination.... I am still in my cave so this must be an illusion....

GeneralI let my operating system do what it can Pin
koolprasad20034-Jul-10 19:41
professionalkoolprasad20034-Jul-10 19:41 

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.