This is a pretty simple little question about windows threads. If I have some code that looks like this:
Will this keep creating an unlimited number of threads, all executing the code in pfnDoSomething()?Code:while (1) { hThread = CreateThread(..., pfnDoSomething, ...); }
Or, will it only create the thread once, and then all subsequent calls simply get a handle from it? (like CreateFile can open an existing file).