How much overhead exists when AfxBeginThread does this?
I have an embarrassing parallel project, and I want to run batches of 4-15 threads with AfxBeginThread, wait for each to finish naturally, compare the results, and then repeat two million times.
What bothers me is that each worker thread will do much less than a second job, maybe 1 / 50th of a second or less, and to be honest, I donβt know how many cycles the AfxBeginThread voodoo enters to register a new thread , configure it, enter it and exit it naturally when the function ends.
Any thoughts?
source share