Locks suspend contending threads in the OS scheduler. Non-blocking atomic classes (java.util.concurrent.atomic) and Java 9 VarHandle compile straight down to single CPU Compare-And-Swap instructions—giving wait-free/lock-free speed when critical sections are a single field update.
More lessons in Complete Core Java