billroper: (Default)
[personal profile] billroper
I've been doing some experimental work to see if I can multithread our calculations. This involved a lot of code refactoring. I am now ready to see if the refactored code survives running with one thread. If it does, then I'll try two so I can watch it crash...

What? You think these things work the first time?

Date: 2006-05-11 11:00 pm (UTC)
From: [identity profile] mia-mcdavid.livejournal.com
No, the question is not, *will* it crash, but *where* will it crash. This time.

Date: 2006-05-12 12:02 am (UTC)
From: [identity profile] giza.livejournal.com

Threading is evil!

*runs and hides*

Date: 2006-05-12 01:19 am (UTC)
madfilkentist: My cat Florestan (gray shorthair) (Tux)
From: [personal profile] madfilkentist
Trouble with threads is, your test will run fine, and the code will wait till it's in production to find a race condition and crash.

Date: 2006-05-12 01:46 am (UTC)
From: [identity profile] unkbar.livejournal.com
Are you running on multiprocesor or multicore systems? Multithreading won't do much to speed up large blocks of calculations on a uniprocessor. In a uniprocessor, splitting a big calculation in two and running it in two concurrent threads doesn't give you any more MIPS, and may add thread management overhead. Threading's big win is things like keeping the GUI live while a long calculation is going on, or handling network traffic concurrently with file I/O.

Date: 2006-05-12 12:47 pm (UTC)
From: [identity profile] kevinnickerson.livejournal.com
I've had cow-orkers in the past that thought they worked first time. Even to the point of checking in code that didn't compile, or forcing a corrupted zip of code that didn't even work to Austrailia.

Profile

billroper: (Default)
billroper

February 2026

S M T W T F S
1 2 3 4 5 6 7
891011121314
15161718192021
22232425262728

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 8th, 2026 05:54 am
Powered by Dreamwidth Studios