Skip to content

What a lock actually does

A thread takes a lock before updating a shared list.

What happens to a second thread that reaches the same lock?