Ask HN: How to learn concurrency?
1–10 of 22 posts
Race condition, producer consumer, and cool stuffs like that? I do java
Re: Ask HN: How to learn concurrency?
#2That's a huge topic but I would say implement a hobby project and learn by doing. Pick something you're interested in and start writing code to exercise the theoretical concepts.
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.
Re: Ask HN: How to learn concurrency?
#3Brilliant.org?
Re: Ask HN: How to learn concurrency?
#4Everything I know is from desperately trying to parallelize my TIS-100 solutions.
Re: Ask HN: How to learn concurrency?
#5Re: Ask HN: How to learn concurrency?
#6Re: Ask HN: How to learn concurrency?
#7Java Concurrency in Practice[1] has always been recommended by my colleagues. I'm about halfway through it and I think it makes the concepts pretty clear. Even if you move away from Java one day, I think the investment is not lost at all. Then you could ask your favorite LLM to create concurrency exercises once in a while to practice.
[1]: ISBN 978-0321349606
Re: Ask HN: How to learn concurrency?
#8[flagged]
Re: Ask HN: How to learn concurrency?
#9Read a book about OS's I guess. This should be good, an update of an earlier good book: https://www.os-book.com/OS10/
There was a Java-specific edition: https://www.os-book.com/OS8/os8j/index.html
Re: Ask HN: How to learn concurrency?
#10That's a huge topic but I would say implement a hobby project and learn by doing. Pick something you're interested in and start writing code to exercise the theoretical concepts. 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.
But what is a good hobby project with a strong focus on concurrency that will not swamp a beginner to this topic?