On Wed, Mar 18, 2009 at 11:51 PM, Tyler Littlefield <[email protected]> wrote: >> not unless you do initialization first, or they're started like right at >> the same time, and code slicing comes in to play, but I don't see it >> happening, or it'd be really rare. > Ok, but if there's a simpler solution that's guaranteed to work (correct me > if I'm wrong), it would seem perverse to choose the more complicated > solution that will probably fail in your first customer demo :-)
> because mutexes are totally garenteed to work, I'm sure. Yes. Do a little reading on them. The whole idea of a mutex (Mutual Exclusion) is that it is guaranteed to work. Hence they are used to avoid deadlocks and other problems in multithreaded applications. -- Tamas Marki
