Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atomic Instruction Samples #48

Open
twood02 opened this issue Feb 4, 2015 · 1 comment
Open

Atomic Instruction Samples #48

twood02 opened this issue Feb 4, 2015 · 1 comment

Comments

@twood02
Copy link
Member

twood02 commented Feb 4, 2015

Lock-free data structures can improve performance compared to traditional locks by using atomic instructions such as compare and swap. For this issue you should write code that demonstrates how to use these instructions to build basic synchronization mechanisms like locks for a multi-threaded program.

You should coordinate with #44 to evaluate the performance of both the regular locks and your lock-free versions.

For example, you could write a program that measures the number of times per second a multi-threaded program can increment a counter, either by using standard mutexes or by using atomic instructions.

Put your code in threads/atomics. Include some documentation to explain how these work and links to relevant reference material.

@wenhuizhang
Copy link
Member

Prof. do you mind if assign this issue to us ?
@huyang1988 @pradeep-k @wenhuizhang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants