title: Explain how it works mutex
body: <p>Now i'm try to learn multithreading and mutext. But i don't understand it. For example i add items to list in anotyher thread then main programm:</p>
  
  <pre><code>GMutext* lock;
  g_mutex_lock (lock);
  g_list_prepend(list, "Some data");
  g_mutex_unlock (lock);
  </code></pre>
  
  <p>What happens in this case with the list? The list of added elements, as well as no access from the main thread until the g_mutex_unlock? Or i wrong understand it?</p>
  
  <p>Thank you.</p>
  
  <p>Thank you.</p>