Subj : Re: Visualizing multi-threaded programs To : comp.programming.threads From : Joe Seigh Date : Sat Feb 26 2005 08:01 am On Sat, 26 Feb 2005 04:17:35 -0600, Ian Pilcher wrote: > I'm making my first significant use of multi-threading in my current > project, and I've reached the point that I'm finding it difficult to > "keep all the balls in the air," mentally speaking. I know of several > ways to "visualize" a single-threaded program -- flowcharts, call trees, > object hierarchies, etc. -- but none of them capture the extra > complexity introduced by multiple threads of execution. > > Are there any techniques that folks are using to address this. > Practice and experience. You should try to stay with the well know threaded design patterns that are known to work, e.g. producer/consumer, reader/writer, etc... Condition variables lend themselves to constraint driven programming if you have those kind of problems to solve. Other types of problems may be a little more tricky. -- Joe Seigh .