How does one spawn one thread for each core in C++ on Windows?
I'm writing an image processing algorithm to process a bunch of completely separate images. In an ideal world, I would like to query the operating system for how many cores it has available, and then run a thread on each core.
Is there a way in C++ to query for how many cores are on the machine on which I am running?
Can I spawn a thread for a particular core?
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.