|
|
Log in / Subscribe / Register

An introduction to lockless algorithms

An introduction to lockless algorithms

Posted Mar 25, 2021 12:22 UTC (Thu) by naveenmv7 (guest, #141627)
Parent article: An introduction to lockless algorithms

"Note that data is flowing from one thread to the other with no lock involved"

Why is this true? Can't pthread_join be implemented using semaphores internally?


to post comments

An introduction to lockless algorithms

Posted Apr 6, 2021 15:56 UTC (Tue) by pbonzini (subscriber, #60935) [Link]

The internal implementation is irrelevant. From the point of view of the programmer there is no lock, and yet things work because of the way entering the thread synchronizes with pthread_create, and exiting the thread synchronizes with pthread_join.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds