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?
Copyright © 2021 Jogjafile Inc.
See How do I detect a dual core CPU on iOS? It works in OS X too.