News for hackers. Stuff that matters.
Re:A threading riddle by davidtgoldblatt on Monday June 29, 2015 @07:07PM (#9801778)
I think his solution is a little bit tongue in cheek - it shows how much easier it is to solve using transactional memory compared to low-level concurrency primitives. So it cheats by using very powerful techniques instead of the very weak ones that the post says to use. You couldn't use his solution in C++ for instance, because C++ doesn't come with garbage collection or transactional memory.
Re:A threading riddle by JadeNB on Monday June 29, 2015 @07:49PM (#9801960)
I see; I don't know enough about concurrency to recognise the tongue-in-cheek-ness (or whatever). Thanks for explaining!