title: Why are locks said to violate the principles of abstraction and composability?
body: <p>I failed to find any definite answer on Google or even StackOverflow to answer this question.</p>
  
  <p>From my understanding </p>
  
  <ul>
  <li>Threads that use locks can break abstraction</li>
  <li>Locks are not composable</li>
  </ul>
  
  <p>But how and why does a lock break abstraction and composability?</p>