Tom Ritchford
Apr 12, 2023

--

Another fascinating article!

I have to say that as I get on, I find myself using thread-safe queues for more and more of my concurrency needs, simply because reasoning about them is much easier, and it guarantees (if you do it right) that only one thread ever looks at a given piece of data at one time.

But of course not all concurrency can be done that way. Shared pointers are occasionally necessary, but when they are, there's probably no other good way to do things.

Accept claps!

--

--

Responses (1)