educative.io

Definition of lock-free

Can you be more specific about what you mean by “lock-free” here(The Atomic Flag - Modern C++ Concurrency: Get the most out of any machine)?

I also checked the Glossary but the concept is still not clear to me.

Thanks.

Hi Victor!
Basically, if any part of our code satisfies the given conditions, then that part can rightfully be considered lock-free and if does not satisfy then we can call that locked statement. It is simply a term used to describe the code without saying too much about the code.
Hope it will clear your confusion. If you still have any queries please let us know.
Thank you.