• Don't Tie Your Threads in Knots

    One thing to remember about threads: they're never polite. Ever.

    Threads never move themselves out of the way for other threads. When threads contend for a single resource this is not a great concern, but occasionally a situation arises where multiple threads contend for simultaneous access to multiple resources.