Issues and dangers with locks

There are plenty of dangers with using locks (e.g. pthread mutexes), for example:

  • Composition
  • Deadlock
  • Convoying
  • Priority Inversion