Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#37 Number of CPUs/Cores

open
nobody
None
5
2012-10-09
2010-03-16
No

This is for Allegro 5

I would like to see a function that can return the number of cores a system has. With this function, I could dynamically check to see if it's worth making multiple threads on a system. Also, for ex_threads2, it would allow it to use all cores on a hyper-threaded 6-core processors to use all threads on the system. Currently set to 9 (also, could scale down to not use more than needed)

Discussion