Changes to threads and locks based on lones feedback
Merge branch 'master' of https://github.com/Felorati/scalability