Question d’entretien chez Blue Origin

What is a lock in multi-threading programming?