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 ArticleHow 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
More Pages to Explore .....