There's a flipside to this 'convenience' though, you have
to be very mindful of how your threads access your shared
variables. Deadlock bugs pop up in a nondeterministic manner
and are notoriously hard to pinpoint.
Apparently there's a whimsical term used to describe this sort of bug: Heisenbugs (after the Heisenberg Uncertainty Principle :-D) - bugs that disappear or alter their behaviour when you attempt to probe or isolate them.
http://www.hyperdictionary.com/computing/heisenbug
There are also bohrbugs, mandelbugs, and schroedinbugs :-P A set of terms more useful to learn than all that Patterns drivel, if you ask me. ;-)
-- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
