Locks: The Basic Idea

This lesson presents the basic idea and motivation behind locks.

We'll cover the following...

As an example, assume some critical section looks like this, the canonical update of a shared variable:

Press + to interact
balance = balance + 1;

Of ...

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