title: Examples/Illustration of Wait-free And Lock-free Algorithms
body: <p>I've read that wait-free causes all threads to finish independently and lock-free ensures the program as a whole completes. I couldn't quite get it. Can anyone give an example (java) illustrating this.</p>
  
  <p>EDIT: Does lock-free mean a program without deadlock?</p>