[geeks] Win32 Threads

Joshua D Boyd jdboyd at cs.millersville.edu
Tue Dec 10 21:45:18 CST 2002


On Tue, Dec 10, 2002 at 09:40:44PM -0600, Jonathan C. Patschke wrote:
> On Tue, 10 Dec 2002, Joshua D Boyd wrote:
> 
> > Hmm.  I was trying to strip out the proprietary stuff from my code to
> > make an example of what was giving me grief, but the example worked
> > properly.  Now I just have to figure out what the important difference
> > between the two is.
> 
> Perhaps in stripping out the code, you've removed a race condition
> between multiple threads reading/writing data?  If you need both threads
> to be writing to the same pieces of data, be sure you're using some sort
> of synchronization (critical sections, mutxes, etc.).

I don't think there are races or the similar, since the threads
shouldn't be trying to write to any of the same places.

-- 
Joshua D. Boyd



More information about the geeks mailing list