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: SMS 2003 Configuration Question 3 of 4
Problem: wireless repeater using a 2Wire Home Portal
Problem: How do I configure a network printer connected directly to a PC via Ethernet?
Problem: Recommendation for Corporate Apple Sales Rep
Problem: My HP Pavillion dv6000 keeps shutting down by itself - fan running hard before shutdown
Problem: Both external SP2 mouse and internal trackpoint don't work in a Thinkpad T20
Problem: NO MACHINE NX SERVER -- remotely connect to linux console
Problem: Toshiba Portege 3490CT- restore hard disk to factory configuration OR install new OS
Problem: Rollback BIOS update
Problem: Macbook Pro will not connect to internet via airport no matter what