State of the art

int cpu_features[4];
for (int i = 0; i < 100000; i++) {
cpu_features[get_cur_cpu_number()] = cpuid_get_features();
usleep(100);
}

for (int j = 0; j < 4; j++)
printf("CPU %d features: %x\n", j, cpu_features[j]);

http://www.pagetable.com/?p=372

This entry was posted in software engineering. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>