Created
April 10, 2015 10:32
-
-
Save ytakano/23a70453c5d2618160fe to your computer and use it in GitHub Desktop.
Intel TSX RTM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
volatile int i = 0; | |
while (i < 100000000) { | |
asm ("xbegin ABORT"); | |
i++; | |
asm ("xend"); | |
asm ("ABORT:"); | |
} | |
printf("%d\n", i); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment