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

Chapter 2, Technical error | Mutex #63

Open
siddharthteli12 opened this issue Dec 27, 2024 · 0 comments
Open

Chapter 2, Technical error | Mutex #63

siddharthteli12 opened this issue Dec 27, 2024 · 0 comments

Comments

@siddharthteli12
Copy link

Type of error

Minor technical mistake

Location of the error

All the other concurrency primitives, such as mutexes and condition variables, are implemented using atomic operations.

Description of the error

Aren't Mutex implemented using OS-level synchronization primitives, which may involve atomic operations? The above statements suggest that Mutex in Rust directly uses atomics within its implementation.

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

1 participant