3 ms·
biased locking can be faster than spinlocking, in the uncontended case unbiasing/re-biasing a lock can be quite heavy, though. JVM did it by pausing threads (o
by harrison_clarke 2y ago
biased locking can be faster than spinlocking, in the uncontended case
unbiasing/re-biasing a lock can be quite heavy, though. JVM did it by pausing threads (or waiting for GC to do so)