2min chapter

Changelog Master Feed cover image

Thinking outside the box of code (Changelog Interviews #552)

Changelog Master Feed

CHAPTER

How to Write Concurrency Algorithms

The Bakery algorithm is a nice simple algorithm and you can, you know, reason about it that way. But because there was no way developed for reasoning about program, but concurrency algorithms, I had to be really careful to make it rigorous. And so I didn't make any assumptions about atomic actions that happen atomically. Two actions can happen at the same time. So my reasoning method allowed that possibility. And that's why I was able to discover that it had that property. Nowadays, we write specifications, like think of it as pseudo code in a way, where we assume that reads and writes are separate actions. They can't happen at the Same Time (RSE)

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode