in reply to Re^2: Multithreading, how to?
in thread Multithreading, how to?
I do like the imagery though. Despite the fact that a kindergarten teacher may be able to get a group of 5 year olds to work together to accomplish some relatively impressive things, that does not mean that any random adult can do the same.
The guy who mentored me in multi-threading suggested an analogy that I've always found useful. Writing multi-threaded code is to writing single-threaded code as playing a musical instrument is to conducting an orchestra. A single musician can be a little sloppier and ad-lib quite a bit without ruining the result. That doesn't work with an orchestra. (You could argue it does work with a good Jazz band.) This is not to say that individuals are sloppier, but a single person does not have the coordination issues that an orchestra does. (Disclaimer: I am not a musician and don't even play one on the Net.)
The point is not that you should never use threads, but that organization and coordination become more important.
The suggestion that you try multi-threading in a smaller experiment before applying it to a big system does not seem to be FUD to me. I would give the same advice to someone trying out a new programming language, methodology, framework, or any other piece of technology.
I suspect that much of the FUD about threaded code out there is spread by people who jumped in with both feet, rather than doing a test program. At least, that has been my experience with some who are fanatically against any form of threading.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Multithreading, how to?
by BrowserUk (Patriarch) on Dec 31, 2008 at 19:29 UTC | |
by gwadej (Chaplain) on Dec 31, 2008 at 19:59 UTC | |
by BrowserUk (Patriarch) on Jan 01, 2009 at 06:21 UTC | |
by gwadej (Chaplain) on Jan 01, 2009 at 15:43 UTC | |
by BrowserUk (Patriarch) on Jan 01, 2009 at 20:46 UTC | |
| |
by ikegami (Patriarch) on Jan 01, 2009 at 10:39 UTC | |
by BrowserUk (Patriarch) on Jan 01, 2009 at 15:46 UTC | |
by Argel (Prior) on Jan 02, 2009 at 20:15 UTC | |
by BrowserUk (Patriarch) on Jan 03, 2009 at 04:53 UTC |