Ask HN: How to learn concurrency?
Mood
thoughtful
Sentiment
positive
Category
tech
Key topics
concurrency
programming
java
The author is seeking advice on how to learn about concurrency, specifically in Java, and is looking for resources to understand concepts like race conditions and producer-consumer problems.
Snapshot generated from the HN discussion
Discussion Activity
Active discussionFirst comment
14m
Peak period
15
Day 1
Avg / period
8
Based on 16 loaded comments
Key moments
- 01Story posted
11/14/2025, 5:52:51 AM
5d ago
Step 01 - 02First comment
11/14/2025, 6:07:09 AM
14m after posting
Step 02 - 03Peak activity
15 comments in Day 1
Hottest window of the conversation
Step 03 - 04Latest activity
11/17/2025, 9:16:48 AM
2d ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
A small piece of advice is to make sure you're motivated before diving in. Debugging a race condition, just as an example, can be quite involved and consume a lot of your time and energy to even reproduce.
2) The Art of Multiprocessor Programming by Herlihy, Shavit et al. - https://shop.elsevier.com/books/the-art-of-multiprocessor-pr... The classic must-study book.
Both the above are not language specific but do have examples in Java.
Large parts of the theory focus on lock-free and wait-free data structures. Which, while interesting, are not necessary for beginners.
The cool stuff in concurrency is not having to deal with it imoand recognizing when its not essential. Also I hope you mean concurrency not parallelism. The second one is a bit more manageable.
(I actually authored a few of those problems - they cover the classic scenarios like producer-consumer, dining philosophers, etc.)
If not, I suggest reading this blog post: https://prettygoodblog.com/p/what-threads-are-part-2
(disclaimer: I wrote this)
[1]: ISBN 978-0321349606
There was a Java-specific edition: https://www.os-book.com/OS8/os8j/index.html
Maybe that is a good side project.
3 more comments available on Hacker News
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.