2 ms·
Once I've read an excellent book, The Art of Multiprocessor Programming [0]. All examples in the book are in Java. After reading it, when thinking about some of
by rusanu 9y ago
Once I've read an excellent book, The Art of Multiprocessor Programming [0]. All examples in the book are in Java. After reading it, when thinking about some of the solutions and algorithms presented, I quickly concluded that deploying them in C/C++ would be an order of magnitude more complex, because of 'memory reclamation'. So yes, I think the OP makes a good point.
[0] https://www.amazon.com/Art-Multiprocessor-Programming-Revised-Reprint/dp/0123973376 https://www.amazon.com/Art-Multiprocessor-Programming-Revise...
- morecoffee 9y agoI picked this book up from the library and it is definitely a useful book. About 2/3rds of the book is actual runnable example code. Also agree totally on Java making concurrency way easier with GC. Russ Cox describes one of these problems here https://research.swtch.com/lockfree https://research.swtch.com/lockfree
- CyberDildonics 9y agoTypical system memory allocation locks, so being able to ignore that aspect makes lock free algorithms simpler, often because it makes them no long lock free.