Microsoft
Software
Hardware
Network
Question : Problem: 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?
Thanks!
Answer : Problem: How does one spawn one thread for each core in C++ on Windows?
http://msdn.microsoft.com/
en-us/libr
ary/aa3943
73(VS.85).
aspx
see NumberOfCores.
Here is an example to get OS info. substitute with "Win32_Processor" at appropriate place(s).
http://msdn.microsoft.com/
en-us/libr
ary/aa3904
23(VS.85).
aspx
Random Solutions
Problem: After upgrading to Vista my PDA is not synchronized anymore
Problem: Flash Player plug in does not work with internet explorer
Problem: motherboard will not recognise harddrive
Problem: Ipod touch apps problem
Problem: USB Devices within Thin Client Environment
Problem: slow transfer speeds
Problem: Windows XP vs. Vista - Terrible Eye Strain
Problem: convert mov files into flv for MAC
Problem: Is there a graphics card that will fit a rack mounted server (e.g. ProLiant DL360)?
Problem: How to cancel past due backup/How to become current