Skip to content

This is an example to demonstrate how you can use the Intel's "cmpxchg" instruction to implement a lock

Notifications You must be signed in to change notification settings

0xsirus/cmpxchg-exmaple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

cmpxchg-emaple

This is an example to demonstrate how you can use the Intel's "cmpxchg" instruction to implement a lock.

Compile:

gcc -o cmpxchg_lock cmpxchg_lock.c -lpthread

About

This is an example to demonstrate how you can use the Intel's "cmpxchg" instruction to implement a lock

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages