mercredi 7 janvier 2015

Writing code that won't run without N number of CPU cores


Is it possible to write a code (or a complete software, rather than a piece of code), that would refuse to work properly (act like it was broken) when run on a CPU that has less than N number of cores? Without checking it explicitly:


if (noOfCores < 4) then don't run properly on purpose


I'm looking at a game (Dragon Age Inquisition) 's minimum sys requirements and it states a minimum 4 core CPU. Many players say it does NOT run on 2 core CPU's and EVEN on i3's with 2 physical + 2 logical cores. And it's NOT a problem of computing power. It just acts weird and refuses to run properly.


From my understanding you can check no of cores but threads are completely isolated from CPU by OS since that cannot be done.





Aucun commentaire:

Enregistrer un commentaire