Building a Lock

This lesson gives a brief idea behind building a lock.

We'll cover the following...

By now, you should have some understanding of how a lock works, from the perspective of a programmer. But how do you build a lock? What hardware support is needed? What OS support? It is this set of questions we address in the rest of the lessons in this chapter.

THE CRUX: HOW TO BUILD A LOCK

How can you build an efficient lock? Efficient locks provide mutual exclusion at low cost, and also might attain a few other properties we discuss below. What hardware support is needed? What OS support?

Access this course and 1400+ top-rated courses and projects.