I actually found this interesting since it gave me a reason to look at some assembly code. It can be helpful to get familiar with what compilers are generating.
If the code is compiled as...
Type: Posts; User: soupbone
I actually found this interesting since it gave me a reason to look at some assembly code. It can be helpful to get familiar with what compilers are generating.
If the code is compiled as...
I'm not that familiar with Win32 synchronization factilities, but using pthreads something like the following might work. I don't think Win32 has a built in concept of wait conditions but they can...
You should try to remove the variables that are shared between the threads. Is it possible to give each thread their own sums and combine them after the threads are done? Locking and unlocking...