Click here to Skip to main content
15,501,036 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%



 
GeneralMulti-thread programming is not for your average Dilbert [modified] Pin
Walter Capers9-Jul-10 9:27
MemberWalter Capers9-Jul-10 9:27 
GeneralI must confess... Pin
drummerboy05118-Jul-10 11:38
professionaldrummerboy05118-Jul-10 11:38 
GeneralOnly 41 to confess that 'Not even my hardware can help me.' Pin
leppie7-Jul-10 21:26
Memberleppie7-Jul-10 21:26 
GeneralNot a issue for me personally on current projects Pin
Mike Diack7-Jul-10 6:43
MemberMike Diack7-Jul-10 6:43 
GeneralMy question came through?? That was fast! Pin
El Corazon6-Jul-10 6:33
MemberEl Corazon6-Jul-10 6:33 
GeneralAm I the only one that thinks it makes things easier to code? Pin
QuiJohn6-Jul-10 6:19
MemberQuiJohn6-Jul-10 6:19 
GeneralRe: Am I the only one that thinks it makes things easier to code? Pin
El Corazon6-Jul-10 6:39
MemberEl Corazon6-Jul-10 6:39 
GeneralHmmmm Pin
RugbyLeague6-Jul-10 6:01
MemberRugbyLeague6-Jul-10 6:01 
JokeRe: Hmmmm Pin
El Corazon6-Jul-10 6:06
MemberEl Corazon6-Jul-10 6:06 
GeneralRe: Hmmmm Pin
RugbyLeague6-Jul-10 6:31
MemberRugbyLeague6-Jul-10 6:31 
GeneralRe: Hmmmm Pin
Dan Neely9-Jul-10 6:15
MemberDan Neely9-Jul-10 6:15 
GeneralConfessional Pin
W Balboos, GHB6-Jul-10 4:19
mveW Balboos, GHB6-Jul-10 4:19 
GeneralRe: Confessional Pin
RedSonja7-Jul-10 0:06
MemberRedSonja7-Jul-10 0:06 
GeneralMultithreaded programming isn't _that_ hard PinPopular
Gary R. Wheeler6-Jul-10 3:15
MemberGary R. Wheeler6-Jul-10 3:15 
GeneralMultithreaded programming isn't _parallelism_ Pin
r_hyde6-Jul-10 4:43
Memberr_hyde6-Jul-10 4:43 
GeneralRe: Multithreaded programming isn't _parallelism_ Pin
Gary R. Wheeler6-Jul-10 4:51
MemberGary R. Wheeler6-Jul-10 4:51 
GeneralRe: Multithreaded programming isn't _that_ hard Pin
Paul Reeder6-Jul-10 4:55
MemberPaul Reeder6-Jul-10 4:55 
I agree, but it seems that some people just can't grok it.

I worked with a programmer who thought there was a problem with the ACE threading library - so he decided to replace ACE threading with pthreads. He just couldn't understand how C code and C++ code interacted and ended up dragging around (void* This) pointers around everywhere. Worse, sometimes (This != this). There wasn't anything wrong with ACE threading and we ended up abandoning the branch he was working on and allowing another company to *enjoy* his work.

It seems like many others can't distinguish between threading (which is inherently procedural) and objects. The idea that multiple threads can be calling different methods of the same class, or the same object, or even the same method of the same object is something that people just have problems imagining. These same people seem to have problems with C#'s new "yield return" mechanism.

Amazingly (to me), reentrancy is something that people seem to have no problems with.

Again, I agree. I don't understand why people have these problems. It is very simple to me. Unfortunately, that makes it hard to describe for people. After describing the same thing multiple ways, you want to start sentences with "This is so freakin' simple ....".
Paul

GeneralRe: Multithreaded programming isn't _that_ hard Pin
Gary R. Wheeler6-Jul-10 5:01
MemberGary R. Wheeler6-Jul-10 5:01 
GeneralRe: Multithreaded programming isn't _that_ hard Pin
El Corazon6-Jul-10 6:02
MemberEl Corazon6-Jul-10 6:02 
GeneralRe: Multithreaded programming isn't _that_ hard Pin
El Corazon6-Jul-10 5:58
MemberEl Corazon6-Jul-10 5:58 
GeneralRe: Multithreaded programming isn't _that_ hard Pin
Gary R. Wheeler6-Jul-10 14:53
MemberGary R. Wheeler6-Jul-10 14:53 
GeneralRe: Multithreaded programming isn't _that_ hard Pin
El Corazon6-Jul-10 16:23
MemberEl Corazon6-Jul-10 16:23 
GeneralRe: Multithreaded programming isn't _that_ hard Pin
Gary R. Wheeler7-Jul-10 14:50
MemberGary R. Wheeler7-Jul-10 14:50 
GeneralRe: Multithreaded programming isn't _that_ hard Pin
El Corazon7-Jul-10 15:08
MemberEl Corazon7-Jul-10 15:08 
GeneralRe: Multithreaded programming isn't _that_ hard Pin
Gary R. Wheeler7-Jul-10 15:30
MemberGary R. Wheeler7-Jul-10 15:30 

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.