Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since December 2021.
The Atomics.isLockFree() static method is used to determine whether the Atomics methods use locks or atomic hardware operations when applied to typed arrays with the given element byte size. It is intended as an optimization primitive, so that high-performance algorithms can determine whether to use locks or atomic operations in critical sections. If an atomic primitive is not lock-free, it is often more efficient for an algorithm to provide its own locking.
The size in bytes to check.
A true or false value indicating whether the operation is lock free.
| ECMAScript® 2027 Language Specification # sec-atomics.islockfree |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Feb 10, 2026 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.