Re:Why I’m Learning Perl 6
by pierrebai on Wednesday July 26, 2017 @01:57PM
(#14858481)
I fail to see how using a semaphore to schedule work in another thread is "lock-free."
[ Parent
| on HN ]
Because you wait but you don't lock. And the wait is not 100x of an instruction, normally it's the same time as for one single instruction. Writes are fast and atomic, because there's no lock.
Only the writer needs to wait a bit, not any other thread.
Google for lock-free vs wait-free