I want my software to create one thread per core, obviously different Macs have a different number of cores.
Does anyone know how to (programmatically, via Cocoa) determine the number of cores?
I want my software to create one thread per core, obviously different Macs have a different number of cores.
Does anyone know how to (programmatically, via Cocoa) determine the number of cores?
See How do I detect a dual core CPU on iOS? It works in OS X too.