Re:“POSIX advisory locks are broken by design”
by kazinator on Tuesday July 24, 2018 @07:53PM
(#17605869)
Actually, it wasn't a problem on Linux under the initial pthreads implementation. The API worked as you would expect for threads; the advisory locks were owned by individual threads. Eventually (probably after the change to NPTL and improved kernel support for threads) it was fixed to conform to the POSIX design whereby the locks are owned by the process.
[ Parent
| on HN ]
> the advisory locks were owned by individual threads. Eventually (probably after the change to NPTL and improved kernel support for threads)
Isn't that because, in the time prior to that "improved kernel support", threads were really processes, and it was once they became full-fledge (i.e. fully lightweight) threads that they lost the ability to own the advisory locks? Or am I misremembering?