Quantcast
Channel: How to implement a lock in software when no hardware atomic operations are provided? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by btilly for How to implement a lock in software when no hardware...

What you do is make a call to the kernel, for example as described in pthread_spin_lock. The kernel is responsible for tracking the information across all processes.Internally the kernel has a copy of...

View Article



How to implement a lock in software when no hardware atomic operations are...

How to implement a lock in software when no hardware atomic operations are provided?In Boost.Lockfree documentation, they say that:Some architectures do not provide the necessary atomic operations in...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images