-
Windows Threads
This is a pretty simple little question about windows threads. If I have some code that looks like this:
Code:
while (1)
{
hThread = CreateThread(..., pfnDoSomething, ...);
}
Will this keep creating an unlimited number of threads, all executing the code in 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).
-
It'll keep creating new threads until it crashes I believe.
-
Hehe thanks, I figured that was the case but I didn't want to try it myself incase my computer crashed, so thanks FYB!