1. mutex_init Initialize the mutex to unlocked state. 2. Classroom The point of a mutex is to synchronize two threads. When you have two threads attempting to access a single resource, the general pattern is to have the first block of code attempting access to set the mutex before entering the code. When the second …