---
title: "Discussion on \"Benchmarking Non-shared Locks in Java\" | Hashnode"
description: "Discussion on \"Benchmarking Non-shared Locks in Java\". Last time we discussed scalability of j.u.c.l.ReentrantReadWriteLock and some alternatives. Some of the alternatives used a simple CAS (compare-and-swap) based spinlock as the internal writer lock. So, I was curious whether such custom spinlock makes..."
url: "https://hashnode.com/posts/benchmarking-non-shared-locks-in-java/61dae4d3cda0d0294b6981c1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Benchmarking Non-shared Locks in Java](https://puzpuzpuz.dev/benchmarking-non-shared-locks-in-java?utm_source=hashnode&utm_medium=feed)

Last time we discussed scalability of j.u.c.l.ReentrantReadWriteLock and some alternatives. Some of the alternatives used a simple CAS (compare-and-swap) based spinlock as the internal writer lock. So, I was curious whether such custom spinlock makes...

Jan 9, 2022 · 8 min read · puzpuzpuz.dev  
Updated Jan 15, 2022  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#concurrency](https://hashnode.com/tag/concurrency)

## Written by

[Andrei Pechkurov](https://hashnode.com/@puzpuzpuz)

@puzpuzpuz

  
[View profile](https://hashnode.com/@puzpuzpuz)

Top data race and segfault producer in the room.

Core database engineer at QuestDB. Distributed systems gazer. Node.js contributor. Occasional tech blogger and speaker.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
