Improving scheduling of enqueue/dequeue threads.
Merge branch 'master' of https://github.com/mikaelpatel/Cosa
Merge branch 'master' of github.com:JJK801/Cosa