News for hackers. Stuff that matters.
Re:Ask HN : Have you ever programmed with threads? by patio11 on Friday March 05, 2010 @12:08PM (#1169832)
I've done quite a bit of work in Java in threads. They're not as bad as people say if you know what you're doing. However, like memory management, they're really easy to mistakenly believe you actually know what you're doing.

The downloadable version of BCC uses threads in at least three ways: the embedded HTTP client runs in its own thread (to avoid blocking the GUI), the printing logic runs in its own thread (ditto), and about a dozen threads do a bit of a dance to verify the Registration Key. (Took me about an hour to code up -- probably wasted time.)

The online version of BCC just handles everything by process separation and message passing. I prefer this model to threads, as it imposes rigid discipline about data sharing/sychronization/etc, and it makes it easier for my brain to grok the consequences of changes which look trivial.

There are no comments on this comment yet.