A mutex is a data structure that can be locked an unlocked. It is useful for controlling access to a critical section. That is, it is a solution to the critical section problem.