Lamport’s bakery algorithm
The comment(s) in one of my earlier post here inspired my long sleeping passion in distributed computing. After reading about Leslie Lamport and some of his papers, I find his stories fascinating and one of his paper about bakery algorithm is most compelling and has profound effect on me. He has also done many great works such as the Paxos algorithm.
Leslie invented bakery algorithm but he insisted that he discovered it. He wrote
For a couple of years after my discovery of the bakery algorithm, everything I learned about concurrency came from studying it. … The bakery algorithm marked the beginning of my study of distributed algorithms.
He enthralls me with his attitude towards knowledge and learning. His discovery was the beginning of his study of distributed algorithms.
How many people find a solution to a problem, then continue to study the solution for years and learning from it?
Leslie gives me a new inspiration and a whole new perspective towards learning. After reading his paper about bakery algorithm, I have a clearer inspiration in distributed computing. If I choose to specialize in this field, I need more of such inspiration coming to burn a bigger fire.
Distributed computing
I missed an opportunity to work on a distributed computing project many years ago. I was too engrossed in front-end dealing with GUI and stuff. Now, when I read more about Lamport’s works, distributed computing is becoming more interesting. I am also becoming more obsessed in reading distributed computing. Without me realizing at first, I have become Lamport’s fan.
I read his papers with great interest and the desire to read more of his works is becoming stronger in me. I have never had such feeling before. I will continue to find inspiration in his works.
How to present a paper?
This is another work from Lamport which I think will be useful to me as well as some of my students if they know to read and understand this short paper.
HOW TO PRESENT A PAPER
Leslie Lamport
4 August 1979Quotations from “East Coker” by T. S. Eliot.
“So here I am…
Trying to learn to use words, and every attempt
Is a wholly new start, and a different kind of failure
Because one has only learnt to get the better of words
For the thing one no longer has to say, or the way in which
One is no longer disposed to say it.”1. WHAT TO SAY
- Don’t give your paper; the audience can’t take it. If someone can understand in thirty minutes what it took you weeks to develop, then you’re in the wrong business.
- Do advertise your paper. The purpose of an automobile ad is to get potential customers to the showroom, not to give technical specifications. The purpose of your talk is to get people who might be interested in your work to read the paper, not to save them the trouble of reading it.
- Giving a good presentation is an art, requiring both practice and talent. No rules can turn you into an artist, but the following suggestions might be helpful.
- Describe simple examples rather than general results. Try to make the examples much too simple — you will not succeed.
- Don’t use formalism. If your results cannot be described simply and informally, then there is no reason why anyone should be interested in them.
- It is better to be inaccurate than incomprehensible. The place for accuracy is in the paper. (However, false advertising is unethical.)
2. HOW TO SAY IT
- Slides are effective. Here are some suggestions for their proper use.
- Don’t put too much on a slide — a picture of a thousand words is worthless. For 8 x 11 slides, all letters should be at least 3/8 inch high, with plenty of blank space. People in the back row have to read them too.
- Slides should be neat and legible. The listener isn’t your secretary; it’s not his job to decipher your handwriting.
- A rapid sequence of slides has a hypnotic effect. Unless you are a licensed hypnotist, don’t use more than one slide per minute.
- Time your talk. Running over your allotted time is a mark of incompetence, and displaying your incompetence is a poor way to get someone to read your paper. Remember that talking to an audience takes longer than talking to a mirror.
3. DA CAPO
- You are now thinking: “All those dull speakers I’ve listened to should use these rules, but I don’t need them because my talks are interesting.” All those dull speakers are now thinking exactly the same thing. Read the rules again with the proper humility. They apply to everyone.
“The only wisdom we can hope to acquire
Is the wisdom of humility: humility is endless.”4. CODA - For Session Chairmen
- Be utterly ruthless about enforcing time limits. Warn the speaker when he has 10 minutes left and when he has 5 minutes left, and stop him in midsentence when his time is up. The audience will be grateful. (A loud alarm clock works quite well if you don’t turn it off until the speaker has finished talking.)
- Protect the speaker and the audience from inappropriate questions. Questions should be allowed during the talk only if the audience is small and the question is a simple request for clarification. After the talk, you must be prepared to silence the following two kinds of questioner.
- One who leads the speaker into a long discussion of an obscure detail which is of no interest to most of the audience.
- One who monopolizes the time arguing with the speaker over unresolvable philosophical issues.
Remember that silencing one person enables the rest of the audience to ask questions.


Listen to my podcast