title: Mutex lock threads
body: <p>Am new to multi threaded/processs programming.
  So here's what I need to clarify.</p>
  
  <p>Process A code</p>
  
  <pre><code>pthread_mutex_lock()
      pthread_create(fooAPI(sharedResource)) //fooAPI creates another thread with shared resource that shares across processes.
  pthread_mutex_unlock()
  </code></pre>
  
  <p>With the above pseudo code, is process B able to access <code>sharedResource</code> if mutex is not unlocked?</p>
  
  <p>How can I access the sharedResource from process B correctly?</p>
  
  <p>Any there any clear visual diagram that explains the relationship between mutexes, threads and processes?</p>