how would i Syncronizie the threads that the createThread api creates on windows; so i dont get any errors of 2 threads accessing the same memory address. also what is the max number of threads windows can handle?
Posted on 2003-01-09 19:25:58 by Qages
use a critical section for syncronized access to the same data:
EnterCriticalSection / LeaveCriticalSection

use once:
InitializeCriticalSection / DeleteCriticalSection

Dont know how many threads you can start, but I think at least 65535.
Posted on 2003-01-10 06:00:19 by beaster
k after reading the help file on those apis i understand how to use it thx, 65535! wow if i made that many threads i wouldnt have enuf tcp ports for my server.:eek: :rolleyes: :alright:
Posted on 2003-01-10 15:14:22 by Qages